Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with sessions and hidden fields

Status
Not open for further replies.

TheViper

Technical User
Mar 16, 2001
14
CA
This is probably simple enough but it has stumped me. I have a session which holds the username however when I try to put it in a hidden field all I get is the code not the username what am I doing wrong?
 
well, we will need the code to determine that :)

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Here is the code for the hidden field

<asp:HiddenField ID="myString" runat="server" value='<% =Session.Item("name") %>' />


 
ok, well need just a bit more than that:) Where do you set the session value? If you are putting this in session I would assume the name key is set on another page or an asp.net module and then accessed on this page. another question, did you disable session?

For future reference read the FAQs on how to get the best answers or how to ask for help. The more information you can provide the quicker and better support you will receive. remember we do know your situation, context or code base so you need to provide that when applicable.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top