473,378 Members | 1,495 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,378 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 1190
[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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.