Click here to Skip to main content
15,904,288 members
Please Sign up or sign in to vote.
2.41/5 (3 votes)
See more:
I've a button in asp.net Page ,first time when page load then button is work properly but after once time click again button cilck event not firing.
If you want me to Explain,Well
there are two page ,page 1 and page 2. Page 2 is opening by Jquery inside Page 1 container .Page 1 have menu .by click on menu we're opening another seperated PAges inside page 1 .
now In page 2 i've put UpdatePanel.one update panel for whole Page. button is also inside update panel. When first page load ,button event will fire ,but after once time click ,again event not fire due to some issue,maybe Page not reloading complete due to update panle or something else,But I need help here I can't understand how to solve this issue .
Posted
Updated 27-Dec-13 4:45am
v2
Comments
ZurdoDev 27-Dec-13 10:41am    
Why doesn't it work?
JoCodes 27-Dec-13 10:43am    
Post the markup code
ShortProgrammer 27-Dec-13 10:51am    
Markup Code??? Please Try to understand Question fully. Because it not problem in my code i think , Maybe due to Update panel .Jquery this problem, Please read my question again.Ive update my question now.
JoCodes 27-Dec-13 10:55am    
It can be due to numerous reason, Without the Markup how is it possible to check the "some issue"?Also depends on what you are trying to do with the button click code.
ShortProgrammer 27-Dec-13 11:02am    
I'm just updating Record ,nothing else. In button i've Updating query only.As first time button click event fire but after not..but all this problem after i put Update panel in application, If i remove update panel then page work fine. but if i not remove update panel then i get this problem,, hope you will understand little :)

1 solution

Try this in your page Load :

C#
ScriptManager _scriptMan = ScriptManager.GetCurrent(this);
      _scriptMan.AsyncPostBackTimeout = 36000;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900