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
Ask by John Smith
Updated 05 May 2023
example
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();