Textbox Width Problems - ASP.NET -


i have user control on page of website generates text box. textbox has width specified, text box intermitently being shown @ smaller width specified in code. asked users send me copies of "view source" output compare , bad results. "intermittent", mean similar builds - different computers. please note bad results displayed on same "bad" computers (there more 1 user problem) and, conversely, "good" computers (all same version of ie7 "bad" computers) display "good" results.

when page displayed correctly, html sent browser looks this:

<input name="shortdescription" type="text" maxlength="100"  id="shortdescription" class="content" style="width:800px;" /> 

and when renders incorrectly, looks this:

<input name="shortdescription" type="text" maxlength="100"  id="shortdescription" class="content" /> 

in both cases, asp.net code is:

<asp:textbox id="shortdescription" runat="server"  cssclass="content" width="800px" maxlength="100"> </asp:textbox> 

i not sure why style tag getting dropped. above pages both viewed in same browser (ie7) on different computers. computers have corporate build "should" configured same.

i appreciate help!

try setting textbox in cssclass, or style attribute parameter rather using width attribute

<asp:textbox id="shortdescription" runat="server" cssclass="content" maxlength="100" style="width: 800px" />
<style>.content { width: 800px }</style> <asp:textbox id="shortdescription" runat="server" cssclass="content" maxlength="100" />

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -