c# - remove css class in code behind -
i have control
<asp:label id="lblname" runat="server" text="my name" cssclass="required regular" />
i want remove required
class code behind, how can that?
you can replace "required" empty string:
lblname.cssclass = lblname.cssclass.replace("required", "");
Comments
Post a Comment