So times we need to pass the values from one page to other page., For this requirement we
had some options. In those Query string is one of the best option.
By using Query string we can pass data from one page another without based on source and
target pages of the application.
We can pass information between pages in various ways, some of which depend on how the
redirection occurs. The following QueryString option is available even if the source page
is in a different ASP.NET Web application from the target page, or if the source page is
not an ASP.NET Web page.
The Normal url will be like this http://deliciousdotnet/mypage.aspx
But when it comes to query string url the url will be like the following
We will pass the value from our current page to the destinaltion like.,
Now you can access this value in the mypage.aspx.cs in page_Load event or in any method like
this,
Now we can use this value in our page as we wish.
See you again.
had some options. In those Query string is one of the best option.
By using Query string we can pass data from one page another without based on source and
target pages of the application.
We can pass information between pages in various ways, some of which depend on how the
redirection occurs. The following QueryString option is available even if the source page
is in a different ASP.NET Web application from the target page, or if the source page is
not an ASP.NET Web page.
The Normal url will be like this http://deliciousdotnet/mypage.aspx
But when it comes to query string url the url will be like the following
http://deliciousdotnet/mypage.aspx?Val=value1 http://contoso.com/products.aspx?field1=value1&field2=value2
string Val = "Hello";
Response.Redirect("http://deliciousdotnet/mypage.aspx?Val="+val);
this,
String Val = Request.QueryString["Val"];
See you again.







I have no words for this great post such a awe-some information i got gathered. Thanks to Author.
html5 player