473,785 Members | 2,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Textbox is tiny on Mozilla Firebird

When I use IE, the textbox on my webform is normal. When I use Mozilla
Firebird, the textbox is tiny and it is impossible to type text into it.

What must I do to make the textbox viewable with Mozilla?


Nov 18 '05 #1
3 1219
VS.NET tries to help by stripping out some attributes for down level
browsers.
As a workaround, try some code like this in your code behind:
MyTextbox.Attri butes.Add("styl e", "width:325p x;")

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

"Tim Zych" <tz***@nonoemai l.xxx> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
When I use IE, the textbox on my webform is normal. When I use Mozilla
Firebird, the textbox is tiny and it is impossible to type text into it.

What must I do to make the textbox viewable with Mozilla?

Nov 18 '05 #2
Unfortunately .Net doesn't consider Mozilla an uplevel browser and thus
doesn't generate the proper style sheet code to size the control.

As Steve suggested you can manually fix that, but that's a nightmare if you
need to do this for all controls.

This is all controlled by the browser settings in machine.config. One way to
do this is to add the browser string(s) for mozilla.

What I do instead is hack my local web.config file and just force it to use
HtmlTextWriter which outputs uplevel browser code all the time.
<system.web>

<browserCaps>
TagWriter=Syste m.Web.UI.HtmlTe xtWriter

</browserCaps>

</system.web>

Be careful with this because this will essentially disable any browser
specific output! This works fine for my apps, but if you have really old
browsers or other PDA/Phone devices attaching this is probably not what you
want.

OTOH, if you output HTML 4 HTML it rarely does no worse then the HTML 3.2
that .Net kicks out - except that it strips off the style info...
+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/webblog/
----------------------------------
Making waves on the Web
"Tim Zych" <tz***@nonoemai l.xxx> wrote in message
news:#k******** *****@TK2MSFTNG P12.phx.gbl...
When I use IE, the textbox on my webform is normal. When I use Mozilla
Firebird, the textbox is tiny and it is impossible to type text into it.

What must I do to make the textbox viewable with Mozilla?

Nov 18 '05 #3
Hi,
in addition to what others have suggested,
make sure if youre using one of the asp.net server controls, to use the
"style" attribute within that tag.
in other words, instead of doing
<asp:textbox id="whatever" width="10px">
try
<asp:textbox id="whatever" style="width:10 px;"> (not sure of correct
syntax, but you get idea).

the first example will work ok in IE but not Netscape/Mozilla.

HTH

"Tim Zych" <tz***@nonoemai l.xxx> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
When I use IE, the textbox on my webform is normal. When I use Mozilla
Firebird, the textbox is tiny and it is impossible to type text into it.

What must I do to make the textbox viewable with Mozilla?

Nov 18 '05 #4

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

Similar topics

0
1757
by: Freddy | last post by:
I am using the script as below, but there is a problem, in Netscape, and Mozilla Firebird, a .php is added to the filename when the user is prompted to save, it's ok in Internet Explorer and Opera though: $filename="/home/myUserName/filename.exe"; header("Content-Disposition: attachment; filename=filename.exe"); header("Content-Type: application/octet-stream"); header("Content-Length: ".@filesize("$filename")); readfile("$filename");
15
7306
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the same problem. Internet Explorer 6 and Opera 7 have no problems with it. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'> <script>document.write (window.history.length);</script>
3
1370
by: Mr. x | last post by:
Hello, I generally use the IE (version 6.0). I would like some opinions on mozilla browser, please. I have heard that it is good for validating my code (javascript etc.), when IE doesn't. I would like some link about Mozilla browser, please. Thanks :)
1
4177
by: Thomas | last post by:
Hey y'all, I'm using firebird 0.7 and developed some kind of inline editing with java script. Therefore I used the keypress event listener. The problem is that I can only enter one character then the "find as you type" starts. You can disable it, of course, but what if someone else uses the web page and hasn't disabled the feature? Do you have an idea how to disable this feature with javascript? How can I get around this? Thx for your...
2
4550
by: Robert William Vesterman | last post by:
I'm having problems with the display of forms, using CSS, in Mozilla Firebird (and probably other Mozilla-based browsers). I have boiled it down to a fairly small example page, which not only shows the problems, but explicitly points out what they are: http://www.vesterman.com/CSSProblem.html It uses the style sheet:
4
2457
by: Michael Liu | last post by:
I have these styles: p, pre, table { margin: 1em; } And this HTML: <p>A paragraph</p> <table><tr><td>A table</td></tr></table> <pre>A preformatted block</pre> <p>A paragraph</p>
1
2038
by: Florian Feldhaus | last post by:
I have a problem with the following website http://www.kindernest-beinghaus.de I used css to make a hover effekt for the images: - HTML Code: <div id="menu_item"> <div class="item"> <p>
4
5512
by: saif | last post by:
Hi all, I'm working with WinXP and IIS 5.1 and I use Mozilla firebird browser. When I check localhost I am promted for password but that's not the problem. Real problem is I am given this error (after posting me to http://localhost/localstart.asp): ----- Error ------ HTTP 500.100 - Internal Server Error - ASP error Internet Information Services
4
1164
by: Maziar Aflatoun | last post by:
Hi everyone, I just wrote a complete shopping cart using DataGrids...etc with capability to edit each item etc. However, the textboxes become their default size when viewed in Netscape/Mozilla. I thought VisualStudio .Net automatically takes care of that. Any suggestions? Thanks Maz.
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9483
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9956
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8982
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.