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

Blocked AccountRank #403 · 6.2K reputationPosted Dec 18, 2007, 11:49 PM EST
soumya p n39 reputationPosted Dec 19, 2007, 12:39 AM EST
Rakrus106 reputationPosted Dec 19, 2007, 7:09 PM EST
hi,
try to check wether the event is properly attached or not.
just double click on the button and check
Thanks
Rakesh
soumya p n39 reputationPosted Dec 19, 2007, 10:12 PM EST
ArshadRank #2,492 · 564 reputationPosted Dec 31, 2007, 8:34 PM EST
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
ArshadRank #2,492 · 564 reputationPosted Dec 31, 2007, 8:40 PM EST
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
soumya p n39 reputationPosted Jan 1, 2008, 11:53 PM EST
Thanks,
Soumya
ArshadRank #2,492 · 564 reputationPosted Jan 2, 2008, 12:09 AM EST
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 n39 reputationPosted Jan 2, 2008, 2:23 AM EST
regards,
soumya
ArshadRank #2,492 · 564 reputationPosted Jan 2, 2008, 3:14 AM EST
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
ArshadRank #2,492 · 564 reputationPosted Jan 2, 2008, 3:52 AM EST
is there any help u need just let me know.ok,Bye
Regards
Arshad Khan
soumya p n39 reputationPosted Jan 2, 2008, 11:45 PM EST
regards,
soumya