Asp.net request and response

Source: Internet
Author: User

In asp.net, because the event model is adopted, by default, the web form control submits information to the original page, and the ispostback attribute is used to determine whether to load for the first time, if you want to submit to another Page, you need to set the PostbackUrl attribute of the button control to specify the Page to be submitted. The submitted Page obtains the corresponding value using the attributes and methods of the PreviousPage object of the Page object.

When using Request in Asp, you need to remove the runat = "server" tag in Form, and then you can use Html syntax to get the value using the relevant attributes of the Request, however, one condition is the html control used. You must add the runat = "server" attribute to access the relevant content in the related attributes of the Request.

Common response in Asp. write is basically useless in asp.net. If other content already exists in the page, the result of calling this method is to output the content before all the labels on the page, leading to page confusion, generally, a Label-like control is added to display the specified content.

I recently read a book named asp.net 3.5 advanced programming. I saw Chapter 23. How can I wonder if I didn't introduce the Request and Response methods? This is one of the reasons.

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.