What is asp+? Three

Source: Internet
Author: User
Tags what is asp visual studio
asp+ What is asp+ (iii)
Scott Mitchell (AS) ZHX (translated)

6. Some basic changes to the asp+ design script

At the beginning of the article, I mentioned that asp+ changed the basic method of creating Web pages. The creation of ASP pages is a step. Each task is usually separated into a separate ASP page, and, on each ASP page, the project needs to be completed in sequential sequence of code. For example, if you want to allow a user to type his or her name and then display the person's name, you will create two ASP pages: the first page produces a text box with the user name you can type. The second page of the ASP page indicates the action of the text box and simply outputs the value entered by the user on the first page of the ASP page. (for example, response.) Write "Hello," & Request. Forn ("Name")).

In the ASP page, it is important for developers to understand what happens to the client and the server. To the example we cited above, collecting input from customers usually requires a lot of ASP pages, simple records, to get user input through a process of service, and developers must be familiar with this process.

Asp+ still needs this process to collect user input, but developers do not need to deal with these annoying details. asp+ page creation and VB apps very much like. The two-page ASP example above can be easily done on a asp+ page with a few lines of simple code.

<form action= "someasppluspage.aspx" runat= "Server" >
Name:<asp:textbox id= "myname" runat= "Server"/>
<BR>
<asp:button text= "click Done ..." runat= "Server" onclick= "submitbutton_clicked"/>
<P>
<B>
<asp:label id= "Welcomemessage" runat= "Server"/>
</B>
</FORM>
......

<script language= "VB" runat= "Server" >
Sub submitbutton_clicked (Object Scr,eventargs E)
welcomemessage.text= "Hello there," & Myname.text & "!!"
End Sub
</script>

It looks simple, doesn't it? It looks more like a VB file than a Web page, doesn't it? We have a function that the Submit button_clicked function appears to be executed when the user clicks the button created in the ASP page: Button Service control. The function then outputs the name that the user typed in the Service Control text box.

7. My point of view
First of all, asp+ is very cool, is using different means and concise way, and in asp+ in execution, compression and extension aspect than ASP have advantage. Anyway, I'm going to talk to you. At any time you don't give up immediately ASP, first of all, ASP and asp+ in the same package can be used in parallel, second, asp+ still need a long time---the final version of the minimum six months, or to wait a year is not impossible.

I like asp+ 's caching and asp+ 's editing style very much. Although we didn't discuss it here, 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 ASP pages, and the cool thing is that it's like C but not a lot of C's annoying trivia.

Well, that's it. There are many asp+ articles on the web, so check the asp+ article index frequently.
I wish you a happy programming!


Related Article

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.