473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Inconsistent look between browsers

I image this question is already answer in thousands of places because is very obvious that ocurrs. Basically, I have a .net text box control on a asp.net page, and I'm using the width property to specify it's display size, it works great in Internet Explorer 6.0 but running the same page on Netscape 7.1 doesn't work. To make it work I'm setting the <input> size property by hand on the PreRender event of the page, but I wonder is there is something that I missing or is just the way it is, hopefully fixed with whidbey. I experience inconsistences like this on all type of controls, I was under the impresion that the rendering was supposed to accomodate to the browser but apperantly not

I appreciate your help
Nov 18 '05 #1
2 1192
[Add this to Page_Load or PreRender event handler method
TextBox1.Attributes.Add("style", "width:500px;")

References
http://groups.google.com/groups?hl=e...2Bwidth%2Bstyl

Rasika
Nov 18 '05 #2
asp.net strip all style commands if the browser is not IE. the following
code in page load will fix you up.

if ("netscape|gecko|opera".IndexOf (this.Request.Browser.Browser.ToLower())
=0 ) this.ClientTarget = "Uplevel";

-- bruce (sqlwork.com)
"MR. UNDERHILL" <an*******@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com... I image this question is already answer in thousands of places because is very obvious that ocurrs. Basically, I have a .net text box control on a
asp.net page, and I'm using the width property to specify it's display size,
it works great in Internet Explorer 6.0 but running the same page on
Netscape 7.1 doesn't work. To make it work I'm setting the <input> size
property by hand on the PreRender event of the page, but I wonder is there
is something that I missing or is just the way it is, hopefully fixed with
whidbey. I experience inconsistences like this on all type of controls, I
was under the impresion that the rendering was supposed to accomodate to the
browser but apperantly not.

I appreciate your help

Nov 18 '05 #3

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

Similar topics

1
by: The Pistoleer | last post by:
I have an inconsistent problem with some Internet pages when using Netscape (7.1) that I cannot reproduce with IE nor locally. Below is an example link. There are several tables on the pages. ...
4
by: Harlan Messinger | last post by:
At http://www.gavelcade.com/tests/partial-child-recognition.html is an illustration of an apparent inconsistency in the way the child selection operator > is handled with respect to tables, rows,...
1
by: Paul Cowan | last post by:
Although new to .net, I am in the process of developing a web application in vs.net 2003. When run on the 'development' machine the various controls have a XP look about them (ie flat buttons,...
6
by: Doug Mazzacua | last post by:
I noticed that that <ul> lists display differently with <br> between <li>s in IE and Mozilla. Does anyone know of a reference that catalogs all of the known types of differences in display...
10
by: Robert Baer | last post by:
<SWM.HTM listing; does not work; positioning wrong (below main GIF)> <!-- IE adds a horizontal 4-icon strip near the upper left corner when that area is visited (WTF?) --> <head> <meta...
3
by: codeman | last post by:
Hi all Lets say we have two tables: Customer: Customer_number : Decimal(15) Name : Char(30) Purchase: Purchase_number : Decimal(15)
35
by: Francine.Neary | last post by:
I'm finding it really hard to keep some of these things straight... For example, fputs is to puts as fprintf is to printf, except that fputs has the file handle at the end and fprintf at the...
17
by: Dudely | last post by:
My web page displays just fine under IE7, but under IE6 about 90% of it is just plain missing. I get the top of the page, and the bottom of the page... but not the middle. I have not tested with...
3
by: Rahul Babbar | last post by:
Hi All, When could be the possible reasons that could make a database inconsistent? I was told by somebody that it could become inconsistent if you " force all the applications to a close on...
0
by: johnthawk | last post by:
In the below code setting cell to inconsistent sets entire column inconsistent (renderer).However, I need a third state off | on | inconsistent . How can I change one path->cell? Any help...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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,...

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.