Several features of ASP.NET

xiaoxiao2021-03-06  67

1, default language

In ASP , Visual Basic will be used instead of VBScript for the default language. This means that we can get rid of the language restrictions of VBScript, and our code will be compiled (not the original explanation). This means that the ASP page has the performance of the component.

2, server-side control

A client control

Server-side controls can be free to use traditional ASP code in server-side scripts

IF LEN ("SELOPSYS")> 0 THEN

Stropsys = Request.form ("SELOPSYS")

Strname = Request.form ("txtname")

Response.write ("You SELECTED '" & stropsys_

& "'For machine'" & strname & "'.")

END IF

ASP code

IF LEN (SELOPSYS.VALUE> 0 THEN

Response.write ("You SELECTED '" & SELOPSYS.VALUE _

& "FOR Machine '" & TXTName.Value & ")

END IF

A server-side FORM code

Machine Name:

Operating system:

Automatically interpreted as client code after running

You SELECTED 'Windows 98' for machine 'tizzy'.

Machine Name:

Operating system:

Third, server end event

Server-side controls have events that operate server-side events like operating client events, ASP automatic translation server-side events to clients:

ONSERVERCLICK event