Answer the question
In order to leave comments, you need to log in
How to stop reloading js - functions when refreshing the page (pressing F5)?
I have added a blockUI element to an ASP NET jquery project. Works like a popup. I call it from codebehinde like this.
var script = "Sys.Application.add_load(function() {errorDialogStart('WebForm2 Loading...','WebForm2.aspx')}); ";
ClientScript.RegisterStartupScript(this.GetType(),
"blockUI", script, true);
Answer the question
In order to leave comments, you need to log in
xs even if there is a reboot ... try adding some variable to the url when you run the script, and correct the history (so that when you click back everything was normal there).
Well, before running the script, naturally check the url for the presence of this variable :)
MB will do. Well, I think it's a hack. although if there is such an opportunity - then why not use it ?!
otherwise I don't know how. IMHO a more obvious solution.
Add after the cookie is triggered and set the script to run if it is missing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question