<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" >
<ContentTemplate>
<span style="color: silver;">Rate this entry</span>
<cc1:Rating ID="ExistingRating" runat="server" StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar"
FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar" OnChanged="ItemRating_Changed"
AutoPostBack="True">
</cc1:Rating>
<asp:Label ID="lblTotal" runat="server" Font-Size="10px"></asp:Label><br />
<span style="color: Red;">
<asp:Label ID="lblMessage" runat="server"></asp:Label></span>
<div>
<table style="table-layout:fixed; width:200px;">
<tr>
<td style="font-size: 10px; width: 60px;">
<asp:Label ID="lblUName" runat="server" Text="User Name" Visible="False"></asp:Label>
</td>
<td style="font-size: 10px;width:90px;">
<asp:TextBox ID="txtUName" runat="server" Visible="False" Width="80px" Font-Size="10px" ></asp:TextBox>
</td>
<td style="width:60px;">
<asp:Button ID="btnLogin" runat="server" Text="Go" OnClick="btnLogin_Click" Visible="False" /></td>
</tr>
<tr>
<td style="font-size: 10px; color:Red;" colspan="3" >
<asp:Label ID="lblLoginMsg" runat="server" Visible="False">Valid user name is required before rating</asp:Label>
</td>
</tr>
</table>
</div>
</ContentTemplate>
</asp:UpdatePanel> while the following c# code behind is
protected void btnLogin_Click(object sender, EventArgs e)
{
if (condition)
{
lblLoginMsg.Visible=true;
lblLoginMsg.Text = "sssssssssssssssssss";
}
}
and it does not work