Following is the way to get the values from the Querystring.This code will be written in "Page_Load" event of the page.
Request Url - http://www.test.com/hello.aspx?Id=1&type=2
if(Request.QueryString.Count>0)
{
Id = Request.QueryString["Id"];
type = Request.QueryString["type"];
}
Request Url - http://www.test.com/hello.aspx?Id=1&type=2
if(Request.QueryString.Count>0)
{
Id = Request.QueryString["Id"];
type = Request.QueryString["type"];
}
0 comments:
Post a Comment