kkonkle
Newcomer
I am coming from a few VB projects to help someone work on their ASP.Net project, so I do not have a lot of experience in ASP, or .Net.
We have a web form set up, form1, and on this form is some data, a few buttons, and a tab control. Inside the tab control are 4 more web forms. I believe the tab control is from Infragistics.com.
One of the buttons on the front page is New. When I click this I'd like to clear the main form, and all 4 form within the tab control. The problem is, when I click New it fires all 5 page_load events, and then it fires the button click last. So my pages have no idea I want a new record.
Is there some setting inside ASP.Net I could change so the button click event fires first? I have done pretty well at making my Page_Load events all knowing, since no button click can ever set a flag telling page load it was clicked, but it is just getting too complicated now.
So am I missing something easy here, or is this just the way ASP.Net works? If this is the way it works, how do the rest of you handle this issue?
/<evin
We have a web form set up, form1, and on this form is some data, a few buttons, and a tab control. Inside the tab control are 4 more web forms. I believe the tab control is from Infragistics.com.
One of the buttons on the front page is New. When I click this I'd like to clear the main form, and all 4 form within the tab control. The problem is, when I click New it fires all 5 page_load events, and then it fires the button click last. So my pages have no idea I want a new record.
Is there some setting inside ASP.Net I could change so the button click event fires first? I have done pretty well at making my Page_Load events all knowing, since no button click can ever set a flag telling page load it was clicked, but it is just getting too complicated now.
So am I missing something easy here, or is this just the way ASP.Net works? If this is the way it works, how do the rest of you handle this issue?
/<evin