What is ASP+(3)
scott mitchell (as) zhx (translation)
6. Use some basic changes in ASP+design script
At the beginning of the article, I mentioned that ASP+changed the basic method of creating a web page. The creation of the ASP page has steps. Each task is usually separated as a separate ASP page, and on each ASP page, the project needs to be completed in a continuous order. For example, if you want to allow a user to type him or her name, and then display the person's name, you want to create two ASP pages: the first page is to produce a text box with a user name. The second page ASP page refers to the motion of the text box (ACTION) and the value of the input of the user in the first page ASP page is simply output. (For example, Response.write "Hello," & Request. FORN ("Name").
In the ASP page, for developers, it is important to know what happened to the client and server. For the examples we mentioned above, from the customer's collection, the input usually requires a lot of ASP pages; a simple record, if you want to get the user's input, you must get a process of service, and the developer must be familiar with this process.
ASP+still needs this process to collect user input, but the developer does not need to involve these annoying details. The creation of ASP+page is very similar to the VB APPS. The ASP example of our above two pages can easily use a few lines of simple code to complete on an ASP+page.
<form action = "someasppluspage.aspx" runat = "server">
name: <asp: textbox id = "myname" runat = "server"/>
<br>
<ASP: Button Text = "Click When Done ..." Runat = "Server" onClick = "SubmitButton_clicked"/>
<p>
<b>
<asp: label id = "welcomemessage" runat = "server"/>
</b>
</form>
Nympho
<script Language = "vb" runat = "server">
sub -submitbitton_clicked (Object SCR, EventArgs E)
WelcomesSage.text = "Hello theree," & myname.text & "!!"
end sub
</script>
It looks simple, right? It looks more like a VB file instead of a web page, isn't it? We have a function. The Submit Button_Clicked function seems to be executed when the user clicks the button created in the ASP page: the button service control. Then this function output the name of the user in the service control text box.
7. My point of view
First of all, ASP+is very cool. It uses different means and simple ways, and has an advantage in ASP+in terms of execution, compression and expansion than ASP. Anyway, I still have to persuade you. You should not give up ASP immediately. First of all, ASP and ASP+the same package can be used in parallel. Second, ASP+still takes a long time-the final version appears at least and still It is not impossible to wait for six months, or wait for the whole year.
I like ASP+cache function and ASP+editing method. Although we did not discuss here, the Visual Studio organization introduced a new language, C#(read as C-Sharp), which is the predecessor of Java. This new language can be used to create an ASP page, and the coolest thing is that it is very similar to C but there is no cumbersome matters of C.
Okay, just write this. There are many ASP+articles on the Internet, so you need to check the ASP+article index.
Happy programming!
Business source code popular download www.html.org.cn