G
Guest
I'm expiriencing a basic HTML appearance problem with ASP.NET. Following a
couple of sample tags to ilustrate my problem:
<asp:TextBox id="txtWidthIssue" runat="server" Width="100"></asp:TextBox>
<aspropDownList id="ddlWidthIssue" runat="server"
Width="100"></aspropDownList>
Browser like Firefox and I'll imagine many others are not sizing correctly
the controls (.net is removing the with property during the rendering). I
tried to use STYLE="WIDTH: 100px" instead of the Width property, and is doing
the resizing fine in Firefox, but, since STYLE is not natural to the server
controls, every time I do something on the designer, .NET removes the STYLE.
This is just a basic sample, I'm having all type of problems. I was under
the impression that ASP.NET was going to render the appropriate HTML for the
browser requesting the page, if that's right how should I use that
functionality? That functionality includes my basic sample WIDTH?
I'm seriously thinking to create a web custom controls layer to add some
functionality to the basic controls, but before start on that, I'll like to
know if there is a shortcut for this problem, using the current controls.
Thanks in advance
couple of sample tags to ilustrate my problem:
<asp:TextBox id="txtWidthIssue" runat="server" Width="100"></asp:TextBox>
<aspropDownList id="ddlWidthIssue" runat="server"
Width="100"></aspropDownList>
Browser like Firefox and I'll imagine many others are not sizing correctly
the controls (.net is removing the with property during the rendering). I
tried to use STYLE="WIDTH: 100px" instead of the Width property, and is doing
the resizing fine in Firefox, but, since STYLE is not natural to the server
controls, every time I do something on the designer, .NET removes the STYLE.
This is just a basic sample, I'm having all type of problems. I was under
the impression that ASP.NET was going to render the appropriate HTML for the
browser requesting the page, if that's right how should I use that
functionality? That functionality includes my basic sample WIDTH?
I'm seriously thinking to create a web custom controls layer to add some
functionality to the basic controls, but before start on that, I'll like to
know if there is a shortcut for this problem, using the current controls.
Thanks in advance