Introduction to Asp+ Grammar (ii)-writing our first asp+ file

Source: Internet
Author: User
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!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.