Why Event is not firing for an ASP.NET Button??
-
Hi, I am having an ASP.NET button inside a panel.But when I click on this it is not firing the event.."Click" and it is not giving to the page_init,page _load event on posting back..I tried with a new button added..It is still giving the same problem.. Any Idea will be much appreciated why this is happenening.. Pls show me the right way to resolve this.. Thank You, RPM
-
Hi, I am having an ASP.NET button inside a panel.But when I click on this it is not firing the event.."Click" and it is not giving to the page_init,page _load event on posting back..I tried with a new button added..It is still giving the same problem.. Any Idea will be much appreciated why this is happenening.. Pls show me the right way to resolve this.. Thank You, RPM
I've found sometimes for whatever reason, Visual Studio sometimes disassociates button events. Usually all it takes for me to fix is to put in a Response.Write("button clicked") in the event handler. That usually gets things going, then you can just erase or comment out that line. It's some kind of wacky VS voodoo. ------------------- abort, retry, fail?
-
I've found sometimes for whatever reason, Visual Studio sometimes disassociates button events. Usually all it takes for me to fix is to put in a Response.Write("button clicked") in the event handler. That usually gets things going, then you can just erase or comment out that line. It's some kind of wacky VS voodoo. ------------------- abort, retry, fail?
Hi Jszpila, Thanks much for the information.... I tried by putting the code Response.write("button clicked") inside the button click event..But still I cannot get the event fired........... Thank you, RPM.:((:((:((:((:((:((
-
Hi Jszpila, Thanks much for the information.... I tried by putting the code Response.write("button clicked") inside the button click event..But still I cannot get the event fired........... Thank you, RPM.:((:((:((:((:((:((
If you are using VS2005 make sure the OnClick property is set in the markup for the asp:button, if you are using VS2003 make sure the event handler is being properly added in the generated code area.
-
If you are using VS2005 make sure the OnClick property is set in the markup for the asp:button, if you are using VS2003 make sure the event handler is being properly added in the generated code area.
Hi eggsovereasy, I am using vs 2003..and event handler is added like "Protected WithEvents BtnUpdate As System.Web.UI.WebControls.Button" and in the button click it handles BtnUpdate.Click... When I click it is not going to the Page_Init or Page_load event also.. Pls help... Thank You, RPM.:confused:
-
Hi eggsovereasy, I am using vs 2003..and event handler is added like "Protected WithEvents BtnUpdate As System.Web.UI.WebControls.Button" and in the button click it handles BtnUpdate.Click... When I click it is not going to the Page_Init or Page_load event also.. Pls help... Thank You, RPM.:confused:
I used vs 2003 even i faced same problem, but i sort out the problem by deleting the onclick button event and again redo btnclick event becoz sometimes the click event is not fired( for ex in vs 2003 when u rename the button on click event it takes oldername ratherthen new button name but i remove the code declared for oldbuttonname in codebehind then problem is solved) :)
-
Hi, I am having an ASP.NET button inside a panel.But when I click on this it is not firing the event.."Click" and it is not giving to the page_init,page _load event on posting back..I tried with a new button added..It is still giving the same problem.. Any Idea will be much appreciated why this is happenening.. Pls show me the right way to resolve this.. Thank You, RPM
Hi, I had same problem,But I solved that partially.Now Add new button in panel where your current button is present,Double click on new button it will go to code part just write anything and keep Breakpoint on statement,run your application and See whether brekpoint execure or not,then reply me. Regards,