avoid events when postback
-
Hi, I want to avoid the events being called when page is refreshed. For eg: I call a button event that modifies some data in the database. If i press F5 on the same page again the button event is fired and data is modified. How do I avoid it? Thanks in advance Priya
-
Hi, I want to avoid the events being called when page is refreshed. For eg: I call a button event that modifies some data in the database. If i press F5 on the same page again the button event is fired and data is modified. How do I avoid it? Thanks in advance Priya
How ironic.
-
Hi, I want to avoid the events being called when page is refreshed. For eg: I call a button event that modifies some data in the database. If i press F5 on the same page again the button event is fired and data is modified. How do I avoid it? Thanks in advance Priya
why don't you try if(!Page.ISPostBack) { -- code goes here }