asp.net - Why does asp:Textbox sometimes add "text" to the CSS class in the rendered html? -


this markup:

<asp:textbox id="txtaddress" cssclass="s175" runat="server" maxlength="30" placeholder="street"></asp:textbox>

is rendered as:

<input name="ctl00$leftcolumncontent$txtaddress" type="text" maxlength="30" id="leftcolumncontent_txtaddress" class="s175 text" placeholder="street">

but on project, markup: (exactly same)

<asp:textbox id="txtaddress" cssclass="s175" runat="server" maxlength="30" placeholder="street"></asp:textbox>

causes happen:

<input name="ctl00$contentplaceholder1$txtaddress" type="text" maxlength="30" id="contentplaceholder1_txtaddress" class="s175" placeholder="street">

why "text" class not getting applied? it's class="s175" vs class="s175 text".

you can apply skins controls in asp.net, http://msdn.microsoft.com/library/ykzx33wh.aspx , if there default skin in particular project might explain why class being added. check .skin file in project.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -