asp+| Grammar/*
Article Source: http://www.aspCool.com reprint Please specify, thank you!
*/
The asp+ page file, like the ASP, is a text file, but his suffix name is no longer. asp but. asp+
When the client browser sends to IIS. aspx file request, IIS will first compile the. aspx file into the running state of the Ngws class file, note that the compilation process only occurs at the first run, and then runs directly with the running NGWS class (and. JSP Is it very similar?? --Tofu added, no original text
One of the simplest asp+ files can be generated by modifying the suffix name of an HTML file to. aspx! In the following example we will make an example of this
To run the example see here:
Http://tutorial.superexpert.com/quickstart/aspplus/samples/webforms/intro/intro1.aspx
The original code is as follows:
Name:
Category:PsychologyBusinessPopular_comp
(Tofu added:
Some people will say that this example is too simple or not an example at all, but for learning, at the very least let us have a deeper understanding of asp+ some of the mysterious appearance, the following we will explain a particle with <%%> tag.
asp+ files and ASP files are compatible, we can use the nested HTML language between <%%>, the following is a very simple and ASP file fully compatible asp+ file
Name:
Category:PsychologyBusinessPopular_comp
<% for i=0 to 7%>
">welcome to Asp+
<% Next%>
For this example to run please see
Http://tutorial.superexpert.com/quickstart/aspplus/samples/webforms/intro/intro2.aspx
(Tofu Add: This example illustrates the full compatibility of ASPX files with ASP files, but just like this, ASPX doesn't become a new hotspot, and here's a quick introduction to a new feature of the next ASPX file.)
Tip: Unlike the ASP, the code contained in <%%> is compiled and executed rather than executed at script level like an ASP
The <%%> code in the asp+ file can be as dynamic as the ASP to modify the output display of the HTML so that the content of the client changes
<%@ Page language= "VB"%>
Name:
Category:
<% If (Not Request.QueryString("Lookup") = Null) %>
Hi <%=Request.QueryString("Name") %>, you selected: <%=Request.QueryString("Category") %>
<% End If %>
运行的例子在
Http://tutorial.superexpert.com/quickstart/aspplus/samples/webforms/intro/intro4.aspx
Asp+ also has a lot of new features, I will continue to introduce at the right time!
Please continue to support us!