View Full Version : Event Procedures
accessman2 12-15-2006, 09:15 PM Hi,
In MS Access, we can do many event procedures in the forms.
How about ASP.NET/ASP?
Can we have event procedures in ASP.NET/ASP?
Because i want to do automatically population data to the other fields once I choose one data in certain field.
Thanks.
dan-cat 12-16-2006, 05:07 AM Yes, in ASP.NET the source code is seperated from the HTML code that the browser reads. This means that you can place an asp.net control on your web form and assign code to the events to it. These events are obviously limited down to what browsers can handle.
Here's (http://www.xefteri.com/articles/show.cfm?id=18) how it works.
accessman2 12-16-2006, 10:26 AM So,
In MS Access form, they have these events: On Current, Before Insert, After Insert, Before Update, After Update, On Dirty, On undo, On delete, Before Del Confirm, After Del Confirm, On Open, On Load, On resize, On Unload, On Resize, On Close, ON Activate, On Deactivate, On Got Focus, On Click, On Dbl Click, On Mouse Down, On Mouse Move, On Mouse up,...................
In ASP.NET, can we do the above events over there?
Thanks.
dan-cat 12-16-2006, 01:14 PM So,
In MS Access form, they have these events: On Current, Before Insert, After Insert, Before Update, After Update, On Dirty, On undo, On delete, Before Del Confirm, After Del Confirm, On Open, On Load, On resize, On Unload, On Resize, On Close, ON Activate, On Deactivate, On Got Focus, On Click, On Dbl Click, On Mouse Down, On Mouse Move, On Mouse up,...................
In ASP.NET, can we do the above events over there?
Thanks.
No, the events for each web page are far more limited because the page is tied to the abilities of a web browser.
Here (http://www.codeproject.com/useritems/lifecycle.asp) is an article to help you understand how an asp.net page works.
accessman2 12-16-2006, 10:11 PM So, ASP.NET only control 10 events so far, right.
dan-cat 12-17-2006, 10:48 AM So, ASP.NET only control 10 events so far, right.
A web page is made up of HTML.
HTML contains a huge array of elements. Each individual element has it's own array of events. ASP.NET covers each event for each one of these elements.
It's up to you to study the inner workings of HTML and how ASP.NET binds to it. ;)
|
|