hide session variable asp.net 2

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

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>

thanks,
Comment
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