Passing value through Hyperlink in HTML.

Posted by Vishalneeraj-24503 under ASP.NET category on | Points: 40 | Views : 244
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