The first: adding parameters directly behind the URL of:
localhost: 21811 / Handler1.ashx the above mentioned id = 1 & name = "abc";?
The following figure:
The second: passing parameters with hyperlinks: When clicking a hyperlink, the first thing will jump:
localhost: 21811 / Handler1.ashx page, then id and name will be passed in the past two parameters;
for example: hyperlinks
Third: Passing through js method: the user clicks the button button to trigger the onClick event, the implementation of Go () method, Jump to:
localhost: 21811 / Handler1.ashx page, passing the id, and name two parameters in the past;
fourth: form by passing the form:
form action = "Handler1.ashx" Method = "GET", attention can not take action which connection parameters;
Use get parameter passing Precautions
1, submit the parameters using the get way to note that the parameters can not have \.
2, get way transfer date Date format parameters: startDate = 2011/12/02 10:50:25, use yyyy / mm / dd HH: mm: ss format transfer, http protocol is a set of foreigners, so starting a common foreign delivery time format.
3, using the GET request method to pass parameters WEB server format: http: //www.it315.org/counter.jsp name = zhangsan & password = 123?.