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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -