Sunday, July 12, 2009

Corresponding event of button is fired on double clock in asp.net with C#.net ,Plz. help?

ASP.Net with C#.net

Corresponding event of button is fired on double clock in asp.net with C#.net ,Plz. help?
Sometimes the event gets fired twice when the method is being called in the page load and regularly called by clicking. Basically a refresh happens causing the page to load and also the event is triggered. You can shortcut it by in the pageload putting a


if (!postback) around your code.


No comments:

Post a Comment