Confusion between pages passing values

Source: Internet
Author: User

When Ispostback=true represents a non-first request * httpcontext.current.request.querystring[] in parentheses is to get the parameter value passed by another page

httpcontext.current.request.form["ID"] The form gets the value according to the name= "id", which is not the id= "id" of the httpcontext.current.request["id", the general version of both.

Essence: ID is name= "id" <form>

<input type= "text" name= "ID" value= "AAAA"/> <

/form>

If the value of name in the HTML page changes, the background changes accordingly.

Processedit:

<input type= "hidden" name= "Hidid" id= "Hidid"/>

Html:

int id = Int. Parse (context. request["Hidid"]?? "0")

* Is there a book that systematically, structurally, and practically has a theory of our scattered little knowledge. = = A real project is a good book.

General processing Program PR method: ProcessRequest

* How to display the line number of VS1010. Tools-Options-text editor-all languages-line numbers.

Confusion between pages passing values

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.