// asp.net Label text settings using jquery
$("#<%=lbPartDes.ClientID%>").text('');if we are assign the label text using jquery or javascript it will not added to view state. so when our page is refresh or postback this label text will missed.
so we need to set the label enable state is true in aps.net albel tag.
<asp:Label ID="lable1" runat="server" CssClass="blacklabel" EnableViewState="true" Style="font-weight: bold;" Font-Bold="true"></asp:Label>
1) if we want to set value from javascritp or jquery we must use EnableViewState="true".
2) we are want to change any label text use CssClass="blacklabel".
3) if we want to bold the text Font-Bold="true".
3) if we want to change the font as bold we need to add style tag and set your properties. better option is maintained CssClass
No comments:
Post a Comment