asp.net - asp:label gets converted as span element when resource is used -
i have label element below:
<asp:label id="date" runat="server" text="<%$ resources:resource, date%>" cssclass="col-sm-4 control-label" />
when render in browser somehow gets generated span element below:
<span id="ctl00_maincontent_formdate_date" class="col-sm-4 control-label">date</span>
which makes different on page.
but when use text instead of resource:
<asp:label id="date" runat="server" text="date" cssclass="col-sm-4 control-label" />
this renders correctly:
<label for="ctl00_maincontent_formdate_date" class="col-xs-4 control-label">date</label>
anyone come cross issue , how can fix issue render <label>
when using resources?
Comments
Post a Comment