Event Procedures (1 Viewer)

accessman2

Registered User.
Local time
Today, 03:11
Joined
Sep 15, 2005
Messages
335
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

Registered User.
Local time
Today, 10:11
Joined
Jun 2, 2002
Messages
3,433
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 how it works.
 

accessman2

Registered User.
Local time
Today, 03:11
Joined
Sep 15, 2005
Messages
335
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

Registered User.
Local time
Today, 10:11
Joined
Jun 2, 2002
Messages
3,433
accessman2 said:
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 is an article to help you understand how an asp.net page works.
 

dan-cat

Registered User.
Local time
Today, 10:11
Joined
Jun 2, 2002
Messages
3,433
accessman2 said:
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. ;)
 

Users who are viewing this thread

Top Bottom