i have a button in my aspx page.the problem is button click event is not getting invoked instead page_load event is getting invoked when i click the button..i have given the condition if(!ispostback) under page_load event..even then i am facing this problem..is the page getting refreshed or so..?
Please help me out...
Loading
soumya p nPosted Jan 3, 2008, 4:45 AM
regards,
soumya
ArshadPosted Jan 2, 2008, 8:52 AM
is there any help u need just let me know.ok,Bye
Regards
Arshad Khan
ArshadPosted Jan 2, 2008, 8:14 AM
ok.just try to debug it n check ur Event Handler.or what i had given Above thats all i can say without checking the code
Regards
Arshad Khan
soumya p nPosted Jan 2, 2008, 7:23 AM
regards,
soumya
ArshadPosted Jan 2, 2008, 5:09 AM
You just try to compare your last from n the current one,you will get the that what was the problem.ok
Regards
Arshad Khan
soumya p nPosted Jan 2, 2008, 4:53 AM
Thanks,
Soumya
ArshadPosted Jan 1, 2008, 1:40 AM
your event was attached but ur handler was not attached.so how come it will handel the event on ur ASPX page.That was the only problem with ur page.I hope u got that.
Regards
Arshad Khan
ArshadPosted Jan 1, 2008, 1:34 AM
Hi,i think ur IntializationComponent may be change.thats y u had problem.Normally it comes like
private
void InitializeComponent(){
this.Button1.Click += new System.EventHandler(this.Button1_Click);}
Insted of
this.Button1_click,it becomes this.Page_Load;
I think that was the problem with ur page.
Thanks
Regards
Arshad Khan
soumya p nPosted Dec 20, 2007, 3:12 AM
RakrusPosted Dec 20, 2007, 12:09 AM
hi,
try to check wether the event is properly attached or not.
just double click on the button and check
Thanks
Rakesh
soumya p nPosted Dec 19, 2007, 5:39 AM
Blocked AccountPosted Dec 19, 2007, 4:49 AM