hello i want to display lable value but not show lable value.here my code

<asp:Label ID="username" runat="server"><a href="Myaccount.aspx?userid=<%= Session["Id"] %>" style=color:#FF9900 /> </asp:Label>

if i remove session["id"] then lable name display but i need session value.

like this <asp:Label ID="username" runat="server"><a href="Myaccount.aspx" style=color:#FF9900 /> </asp:Label>

this is working fine but i need session value. kindly tellme as soon as possible thanks....

Recommended Answers

All 2 Replies

You can simply redirect to the MyAccount page and then it uses the session value to load the appropriate data. If you are going to another page in your own site passing a session variable as a parameter in the URL is really not needed.

ok thanx alot..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.