What is asp+? Two

Source: Internet
Author: User
Tags extend iis what is asp
asp+ What is asp+ (ii)
Scott Mitchell (AS) ZHX (translated)

5.post-back Forms:

To create an ASP page, you need to know some user information, and in processing this information, many of the ASP developers are using Post-back Forms: Technology. For those unfamiliar with language and technology, a post-back forms: a Web Page table (using the <FORM.....> tag), the execution properties of the table can be set to not exist or be set to the same URL as the Web page that displays the table. When the user submits the form, the same ASP page is invoked, and the user's input is returned to the table. When dealing with these in ASP, it is necessary to use a long if statement to determine whether Post-back has occurred.

In asp+, the cumbersome statement has passed, and now developers can create a asp+ page with the control button (we will get control of the server). In the asp+ code, the developer creates a function that will only be triggered when clicked. (Well, we can see this in more detail later in the article). These are done by using the Smart program of Microsoft mode and Post-back form. All behavior after a table is submitted can be replaced with a single function instead of a series of difficult to read if statements.

Service control: Using ASP, all collection user Input method is to execute the default HTML to control the user form from beginning to end. For example, creating a text box that a user can type information can be done in just a few lines of code. In asp+, these are replaced by service controls that can be created in a asp+ page with only a few lines of code. For example, to create a text box in a asp+ page, you can use the standard HTML tag above, or use a service control with the following code:

<form><input Type=text name=mytextbox></form>

This service controls the text box, creates it with the ASP's text box tag, and requires a text box in the asp+ instruction. Service control can create the required HTML to describe a standard text box. So, when a user browses to the asp+ page, the HTML returns:

<from name= "CTR2" method= "post" action= "intro7.aspx" id= "CTR2" >
<input type= "hidden" name= "_viewstate" value= "a0z-426043723" ... ">
<input name= "MyTextBox" type= "text" id= "MyTextBox" >
...

It should be noted that the Service Control text box is only used to interpret ordinary HTML. Also note that the value of the hidden item is _viewstate. These variables pass the state of the table based on the user's input. This passage does not attempt to dig into the details of how service control works and how they maintain state. These are important for understanding how service control will be clear and correct HTML statements are returned to the user. As a result, as with ASP, any standard Web browser can see the asp+ page well when it is passed to the client.

There is competition in the expansion! : Microsoft's asp+ Development team is very clear about how difficult it is to extend an ASP application. For example, if you want to create a huge ASP application with many generic COM components on your extension server, it's a pain in the neck to move this program to your production server. You want to make sure that all COM objects exist in two servers, and that when you expand an ASP application, these registered components will be one of the most vexing things. Also, between the extended server and the production server, it's also annoying to keep the IIS settings.

Asp+ will release you from these sufferings. Most clearly, asp+ COM registration is no longer a problem. I don't lie to you! Simple copy COM DLL you need to have DLL directory. You can do it! Resvr32 is not needed! Asp+ also provides a configuration file (in text format) that can be modified to a variety of configurations and is typically variable only in the IIS Admin page. These two wonderful changes are a competitive place to extend asp+ applications.



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.