I have a button which fires javascript alert.
after that i do ok it closes but when i reload or refresh the page it opens again.
to explian my problem further plz see the demo of article:
http://aspsnippets.com/Articles/How-to-make-ASPNet-Button-do-PostBack-in-jQuery-Modal-Dialog-Popup.aspx
in this after closing the jquery modal dialog a alert is fired on ok button click of jquery as:
ClientScript.RegisterStartupScript(Page.GetType(), "key", "alert('Button Clicked')", true);
we close it and then if we reload the page again this again opens up even though button is not clicked how can we fix this.
I have tried to use alternates for this 'alert' like ajax modal pop up and jquery as well as simple javascript alert but same thing repeats in all of them.
How to fix it?