Passing value through Hyperlink in HTML.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under ASP.NET category on | Points: 40 | Views : 1053
Write below code,i have taken anchor tag over here:-
<a href = "registration.aspx?name=vish&age=30">Register</a> 

Now,Retrieve the query string value on the registration.aspx Page:-
string Name = Request.QueryString["name"].ToString();
string Age = Request.QueryString["age"].ToString();

Comments or Responses

Login to post response