| | |
session varible from 1 page to another
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jun 2009
Posts: 14
Reputation:
Solved Threads: 0
Hi alll......
i am trying out a login form where in which i have multiple users... i have redirect each user to differnt pages.....
....but im stuck in the middle....... please help me out.....
<code>
page1
session["user"]=txtuser.text
page2
welcome text(A label which is used to specify the current user)
Thank u all in advance:
Nikichu
i am trying out a login form where in which i have multiple users... i have redirect each user to differnt pages.....
....but im stuck in the middle....... please help me out.....
<code>
page1
session["user"]=txtuser.text
page2
welcome text(A label which is used to specify the current user)
Thank u all in advance:
Nikichu
•
•
Join Date: Sep 2009
Posts: 56
Reputation:
Solved Threads: 10
0
#2 33 Days Ago
Just collect the session value and assign it label,the user redirection is based on any group?
if(session["user"].ToString() != "")
{
label lblname=session["user"].Tostriing();
}
if(session["user"].ToString() != "")
{
label lblname=session["user"].Tostriing();
}
Chandru
SilverlightScripting.com
SilverlightScripting.com
0
#3 33 Days Ago
Try with below sample code:
ASP.NET Syntax (Toggle Plain Text)
if(Session["User"]!=null) lblName.Text=Session["User"].ToString();
MARK AS SOLVED if its help you.
REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
![]() |
Similar Threads
- Session ID changing in Firefox when page is refreshed (ASP)
- Session Lost on JSP Page (JSP)
- How to access session defined in asp(not .net) page in aspx.cs page (C#)
- session variable error (PHP)
- session_start(): Cannot send session cache limiter - (PHP)
- Session variable (ASP.NET)
- Web Page Hijacked (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
- Previous Thread: vb.net: How to check or uncheck all chekboxes by clicking only one checkbox.
- Next Thread: open the pdf and doc files as readonly
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn cac checkbox child class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownmenu dynamic edit embeddingactivexcontrol feedback findcontrol flash flv form forms gridview homeedition hosting iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects order problem ratings relationaldatabases rotatepage save search security serializesmo.table sessionvariables silverlight smartcard sql ssl suse textbox tracking treeview typeof unauthorized validatedate validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment wizard xml





