I have a lot of textboxes as follows:
<asp:textbox width="100px" style="LEFT: 720px; position: absolute;"></textbox>
This renders in IE as
<input type="text" style="width:100px;LEFT: 720px;position: absolute;" >
That is not a problem. The problem is in FireFox and Netscape, ASP.Net strips the width like:
<input type="text" style="LEFT: 720px; position: absolute;" >
How do I turn browser sniffing off so ASP.Net does not alter the code going to the browser. An option would be to set ASP.net so it treats all browsers as IE.
FF and NS both understand the css width for textboxes.
I know how to manually change the code and use css. The problem is there are so many textboxes in this project that I need to drag them around in design mode so handing typing them in is not an option.
<asp:textbox width="100px" style="LEFT: 720px; position: absolute;"></textbox>
This renders in IE as
<input type="text" style="width:100px;LEFT: 720px;position: absolute;" >
That is not a problem. The problem is in FireFox and Netscape, ASP.Net strips the width like:
<input type="text" style="LEFT: 720px; position: absolute;" >
How do I turn browser sniffing off so ASP.Net does not alter the code going to the browser. An option would be to set ASP.net so it treats all browsers as IE.
FF and NS both understand the css width for textboxes.
I know how to manually change the code and use css. The problem is there are so many textboxes in this project that I need to drag them around in design mode so handing typing them in is not an option.