Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
I want to pass value of one page to another and chechk user has came from one page to another..
Posted 1-Feb-13 23:50pm
Comments
Mantu Singh at 2-Feb-13 5:52am
   
so what's the problem ?
naveensenagasetti at 2-Feb-13 5:52am
   
You can achieve this by using QueryStrings & Sessions also . Checkout the Syntax for that...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Store the info in the Session object: MSDN[^]
You can store it in the first page, and retrieve in in subsequent ones.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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:
 

 
first page:
 
Session["x"]=value;
 
Second page:
 
string value=Session["x"].ToString();
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

Hi u can get your username in session state,then u can pass the value to different pages.
ex:
session["username"]=txtUsername.text;
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 6,725
1 OriginalGriff 6,696
2 CPallini 5,315
3 George Jonsson 3,589
4 Gihan Liyanage 2,650


Advertise | Privacy | Mobile
Web03 | 2.8.140922.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100