Hi,
Could you please let me know how to pass value from one page to other through Query String as I am new in ASP.NET.
Your help will be appreciated!
Thanks,
John
Problem in passing value from one page to other page in ASP.NET
411928-Sep-2010
Home / DeveloperSection / Forums / Problem in passing value from one page to other page in ASP.NET
John Smith
30-Sep-2010Anonymous User
29-Sep-2010example
supose you have two pages a.aspx and b.aspx and you want to pass value from a.aspx to b.aspx then instead of just redirecting to page b.aspx, redirect to b.aspx as b.aspx?Name=Haider
Here Name is name of Query String and Haider is value you want to pass.
Now to access this value in b.aspx use
string strName = Request.QueryString["Name"].toString();