Controls_NavigationTarget.aspx
, and sends a query string at the same time, for example,
Controls_NavigationTarget_cs.aspx?name=AdamA typical URL containing a query string is as follows:
http://server/path/program?query_stringWhen a server receives a request for such a page, it runs a program, passing the
query_string
unchanged to the program.
The question mark is used as a separator and is not part of the query string.
For each field of the Web form, the query string contains a pair field=value
.
By using the method of query_string
, a page can send data to another page.
For the previous slide, the page Controls5_cs.aspx
used the query_string “name=Adam
” to the page Controls_NavigationTarget_cs.aspx
, which retrieves the value Adam
by using the Request.QueryString collection.
Controls_NavigationTarget_cs.aspx?name=Adam |
Web |
|
---|---|---|
|