Hi
I have a label which should show a message if the session has value or not , but there is nothing appear what ever if the session has value or not
if (Session["SCart"] != null)
{
Label shopcartlbl = (Label)loggedview.FindControl("shopcartlbl");
shopcartlbl.Text = "You have new product";
}
else
{
Label shopcartlbl = (Label)loggedview.FindControl("shopcartlbl");
shopcartlbl.Text = "0 product";
}
<asp:Placeholder ID="loggedview" runat="server">
<asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSourceuserdetailnav"><ItemTemplate>
<div class="loggedinview">
<asp ...
Go to the complete details ...