hide session variable asp.net 2

bailey1200 used Ask the Experts™
Hi, I have this code which works great.
<asp:TableRow runat="server">
<p>Survey Id: <%=Session["SurveyId"]%></p>

I want to hide the session though?

How can I do this...
I have tryed this but it doesn't like the syntax..
   <asp:Label ID="Label1" runat="server" Text='<%#=Session["SurveyId"] %>'></asp:Label>

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Try using this instead

<asp:HiddenField ID="SurveyId" runat="server" value=<%=Session["SurveyId"]%>/>

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial