05/18: Post VS Get In Asp.net
Code :
…
<form action="getpost.aspx" method="get">
<input type="text" name="Text" value="Hello World" />
<input type="submit" value="Use Get" />
</form>
<br />
<form action="getpost.aspx" method="post">
<input type="text" name="Text" value="Hello World" />
<input type="submit" value="Use Post" />
</form>
….
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Request.RequestType);
} }
equest.RequestType
0 Comments:
Post a Comment
<< Home