Posted on: 11/6/2014 3:49:16 AM | Views : 499

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