Ask a Question related to ASP.NET General, Design and Development.
-
Craig Deelsnyder #1
Re: Sequence of events on a web form
Page_Load is run on every page load or postback. Remember the web is
stateless, so ASP.NET, when a request comes in, it creates the corresponding
Page class/object for whatever page was requested. It then runs the
Page_Load event and continues from there.
If there's some processing you want done only once (when the page is first
loaded from the user's perspective), add a check for IsPostBack in the
Page_Load event....
If Not IsPostBack then
'//do some initial page loading, maybe setup your table, bind datasources,
etc.
End If
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
"John Black" <johnblack@shaw.ca> wrote in message
news:%23IvN9JJVDHA.2104@TK2MSFTNGP10.phx.gbl...going> I am a little confused about the sequence of events on a webform. I amdatagrid> through the MCAD/MCSE certification book for .NET programming from
> Microsoft. Chapter 5 is the database chapter. I am trying to bind aI> to the datasource after updating the dataset. I just investigated the best
> place to put the dataset.update command and have discovered that my
> Page_Load event gets fired immediately after clicking the "AddRow" button> have on my web form. Does anyone else have the same problem?
>
> Paul
>
>
Craig Deelsnyder Guest
-
Gap Sequence
I have a problam , is anybody have idea about it? Is any module there which can find and print gap sequence? thanks -
How to catch events of collection form
I created a custom collection editor for adding controls to acontrol in design time. I want control the action of adding morecontrols. I could not... -
How to handle personalized events of a class in a web form?
Hello, I´m trying to do a progress page that indicates some visual information to the user in a long directory copy process. I have a Class that... -
Catching events in web form fired by user control
I'm trying to process an event raised by a user control in the web form that contains that control. I've fathomed out how to handle the event... -
Multipage Form Events
In the control where the user enters a, c, p, or s use the following case statement. In my example I used a text box called txt_Source and each...



Reply With Quote

