This article is summed up in the day-to-day work, the following four kinds of parameters to convey the form of the show to everyone.
When to use GET, check, delete,
When to use post, add, change (Special column: Login with post, because the user name and password can not be displayed on the URL)
4 kinds of Get-pass mode
<!--//parameter transfer in several forms-->
<!--First: Add parameters directly behind the URL:-->
Copy Code code as follows:
Localhost:21811/handler1.ashx?id=1&name= "ABC"
<!--the second: passing parameters in a hyperlink: When you click the hyperlink, you jump to the Localhost:21811/handler1.ashx page first, and then pass the ID and name two parameters past-->
<a href= "localhost:21811/handler1.ashx?id=1&name= ' abc" > hyperlink pass Parameters </a></body>
<!--third: Through the JS method pass: The user clicks on this button, triggers the onclick event, executes the Go () method, jumps to localhost:21811/ Handler1.ashx the page, passing the ID, and name two parameters past-->
<input type= "button" onclick= "Go ()" value= "passing parameters via JS method"/>
<!--Fourth: passing--> with form forms
<form action= "Handler1.ashx" method= "get" ><!--Note that the connection within the action cannot have a parameter-->> <input type=
"text" Name= "id" value= "3"/>
<input type= "text" name= "name" value= "abc"/> <input type=
"Submit" value= " By passing parameters "/>
</form>
</body>
Through the introduction of the above code, I believe everyone will like.