G
Guest
I have two usercontrols on the home page of my website. They are intermitently sending incorrect HTML to the browser, which results in a textbox being rendered with the wrong width. Either both controls render correctly or both are incorrect but never a mixture. When they are rendered correctly the source looks like
<input name="Header2:txtKeyword" type="text" id="Header2_txtKeyword" style="width:80px;" /
When incorrect the source looks like
<input name="Header2:txtKeyword" type="text" id="Header2_txtKeyword" /
The asp.net code in both cases is
<asp:TextBox ID="txtKeyword" Runat="server" Width="80"></asp:TextBox
Is there any reason why different HTML is being generated for the same browser on the same machine and how to ensure the width property is rendered correctly?
<input name="Header2:txtKeyword" type="text" id="Header2_txtKeyword" style="width:80px;" /
When incorrect the source looks like
<input name="Header2:txtKeyword" type="text" id="Header2_txtKeyword" /
The asp.net code in both cases is
<asp:TextBox ID="txtKeyword" Runat="server" Width="80"></asp:TextBox
Is there any reason why different HTML is being generated for the same browser on the same machine and how to ensure the width property is rendered correctly?