0

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....

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by mani508
0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.