Home > Code > HTML > Passing value through hyperlink in HTML

Passing value through hyperlink in HTML

by Spidy   on Feb 21, 2011   Category: HTML   |  Views: 966    |  Points: 25   |  Silver 


Sample code for passing value through hyperlink in HTML
<a href="submit.aspx?name=david&age=25">Register</a> 

Retrieve the query string value on the submit.aspx page
string Name = Request.QueryString["name"].ToString();
string Age = Request.QueryString["age"].ToString();


Regards,
Spidy.


Post Code  |  Code Snippet Home

User Responses


No response found, be the first to review this code snippet.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts