Click here to Skip to main content
15,891,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to pass value of one page to another and chechk user has came from one page to another..
Posted
Comments
Mantu Singh 2-Feb-13 5:52am    
so what's the problem ?
Naveen.Sanagasetti 2-Feb-13 5:52am    
You can achieve this by using QueryStrings & Sessions also . Checkout the Syntax for that...

Store the info in the Session object: MSDN[^]
You can store it in the first page, and retrieve in in subsequent ones.
 
Share this answer
 
Use Reponse.Rediredct(home.aspx?value="0ABC") and pass value one page to another page
and you can receive on page loading using string value=Request["value"].Tosting
object check for that...
It will work
 
Share this answer
 
v2
You can achieve this by using QueryStrings & Sessions also . Checkout the Syntax for that...

first of all store that information in query string / session and then fetch that value in another page .

EX:


C#
first page:

Session["x"]=value;

Second page:

string value=Session["x"].ToString();
 
Share this answer
 
Hi u can get your username in session state,then u can pass the value to different pages.
ex:
session["username"]=txtUsername.text;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900