473,508 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webforms Textboxes under Netscape

All,

I have a problem that Webform textboxes get smaller in width in
Netscape 4 and above. Everything works fine in IE 5 and above. I
tried to set the size property in the <asp: textbox> tag, but it has
no effect. Here is the tag as is right now:

<asp:textbox id="txtpass" runat="server" Width="325px"
TextMode="Password" MaxLength="14"></asp:textbox> and setting size=20
doesn't do anything.

Any suggestions? I am using VS.Net 2003 VB.NET.

Thanks,
Bob
Nov 17 '05 #1
2 903
Visual Studio tries to help by stripping out some attributes for down level
browsers.
As a workaround, try this in your code behind:
txtpass.Attributes.Add("style", "width:325px;")

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Bob W" <wr***@msn.com> wrote in message
news:4c**************************@posting.google.c om...
All,

I have a problem that Webform textboxes get smaller in width in
Netscape 4 and above. Everything works fine in IE 5 and above. I
tried to set the size property in the <asp: textbox> tag, but it has
no effect. Here is the tag as is right now:

<asp:textbox id="txtpass" runat="server" Width="325px"
TextMode="Password" MaxLength="14"></asp:textbox> and setting size=20
doesn't do anything.

Any suggestions? I am using VS.Net 2003 VB.NET.

Thanks,
Bob

Nov 17 '05 #2
That worked. Thanks for the response.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:<eo*************@TK2MSFTNGP11.phx.gbl>...
Visual Studio tries to help by stripping out some attributes for down level
browsers.
As a workaround, try this in your code behind:
txtpass.Attributes.Add("style", "width:325px;")

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Bob W" <wr***@msn.com> wrote in message
news:4c**************************@posting.google.c om...
All,

I have a problem that Webform textboxes get smaller in width in
Netscape 4 and above. Everything works fine in IE 5 and above. I
tried to set the size property in the <asp: textbox> tag, but it has
no effect. Here is the tag as is right now:

<asp:textbox id="txtpass" runat="server" Width="325px"
TextMode="Password" MaxLength="14"></asp:textbox> and setting size=20
doesn't do anything.

Any suggestions? I am using VS.Net 2003 VB.NET.

Thanks,
Bob

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1890
by: michaaal | last post by:
I know this isn't really an ASP question, but I thought you guys might know the answer being that you work with textboxes alot. All of a sudden about 50% of my textboxes are yellow (as opposed to...
15
12349
by: crjunk | last post by:
I have 4 TextBoxes on my form that I'm trying to add together to get a grand total. Here is the code I'm using: <SCRIPT LANGUAGE="JavaScript"> <!-- Beginning of JavaScript - function...
1
1487
by: Robert Sander | last post by:
Hi, I try to render a textbox in Netscape 7.0 which is exactly 5 chars long: <input style="font-family:courier;font-size:13px;" type="text" size="5" maxlength="5" /> This results in a...
3
8453
by: Raul M. Colon | last post by:
Is possible to assign a click event to a button control in a Web form just pressing the return key? Something like windows forms where you can assign this action to a default control. For example,...
1
1711
by: Paul R | last post by:
Hi, I have a Winforms application that access some SQLServer2000 stored procedures. I have now written some new Webforms pages to use some of the same stored procs. The Webforms use the SAME...
1
927
by: Big E | last post by:
I'm using ASP.Net and 2 webforms. The first web form is open and users click a hyperlink on the datagrid and that pops up a 2nd form with more details. If the user likes the record he will click a...
2
953
by: Steve Murphy | last post by:
My textboxes are losing their defined width when viewed in Netscape and Firefox. They are fine in IE. Also, if I use HTML text fields in place of the textboxes, I don't experience the problem....
4
3910
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
5
4927
by: Bit byte | last post by:
Can I use C# (Winforms) to design a website?. I am from C/C++ background but know nothing about Internet programming. My understanding of WebForms are that they are similar to WinForms in that...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.