[Repost] ASP + grammar tutorial (2) Writing our first ASP + file

xiaoxiao2021-03-06  19

The files of the ASP page are the same as the ASP, but also a text file, but his suffix name is no longer .asp but.asp

When the client browser issues an .aspx file request, IIS will first compile the .aspx file into a running NGWS file, please note that the process of this compilation is only in the first time, After running directly in the Running NGWS class (and .jsp is similar to it ?? - Tofu added, the original text is not)

A simplest ASP file can be generated by modifying a suffix name of an HTML file to .aspx! In the following example we will make such an example

Example of running, please see here:

http://tutorial.superexpert.com/quickstart/aspplus/samples/webforms/intro/intro1.aspx

The original code is as follows:

name:

Category:

(Tofu Add:

Some people will say that this example is too simple or not an example, but for learning, at least let us know more about some mysterious appearances of ASP , below we will explain a %%> Label particles)

The ASP file and the ASP file are compatible, and we can use the nested HTML language between <%%>, which is a very simple and ASP file is fully compatible with ASP files.

name:

Category:

<% for i = 0 to 7%>

name: >>>

Category:

<% IF (Not Request.QueryString ("Lookup") = NULL)%>

Hi <% = Request.QueryString ("Name")%>, You SELECTED: <% = Request.QueryString ("category")%> <% end if%>

Example of running

http://tutorial.superexpert.com/quickstart/aspplus/samples/webforms/intro/intro4.aspx

ASP has a lot of new features, I will continue to introduce at the right time!

Please continue to support us!

转载请注明原文地址:https://www.9cbs.com/read-41923.html

New Post(0)