473,804 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1213
[Add this to Page_Load or PreRender event handler method
TextBox1.Attrib utes.Add("style ", "width:500p x;")

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|geck o|opera".IndexO f (this.Request.B rowser.Browser. ToLower())
=0 ) this.ClientTarg et = "Uplevel";

-- bruce (sqlwork.com)
"MR. UNDERHILL" <an*******@disc ussions.microso ft.com> wrote in message
news:48******** *************** ***********@mic rosoft.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
1690
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. The tables at the top containing small images are working correctly. The tables below that contain product descriptions and input to purchase an item, these table have a problem with Netscape. Sometimes one or more of these tables will just...
4
1952
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, and cells. I'm trying to bold-face the first column of a two column table. I try the following five variations (the five tables in the demo are assigned classes a, b, c, d, and e, respectively): table.a td:first-child { font-weight: bold; }...
1
1486
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, text boxes, etc). When the application is transferred to another machine (same operating system) the controls have a more traditional 3d look about them. The size and position of some of the controls is different.
6
2493
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 between browsers? Or do you all just do multiple tests of all your pages? Thanks in advance for any advice. _________________________________________
10
1492
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 http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Stripper wells and production</title> </head> <SCRIPT LANGUAGE="JavaScript"> <!--
3
1879
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
2354
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 beginning! Very illogical! And hard to remember. Now this can quite easily be corrected by macros, for example: #include <stdio.h> #define fputs(X,Y) fputs(Y,X)
17
2315
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 any other browsers. The page is at www.greengoldcapital.com I use considerable amounts of CSS, and a lot of other things including javascript, SSI, PHP, mySQL, and a partridge in a pear tree. I have a third party application integrated in,...
3
6202
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 that database and transactions are not committed or rollbacked" I infact, don't believe it, because i suppose when we do a "force
0
1128
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 appreciated. Thanks john # get current value fixed = model.get_value(iter, MARK_FOR_COLUMN) icont = model.get_value(iter,MARK_FOR_INCONSISTENT) # clear for action
0
9714
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
10599
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
10090
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...
1
7635
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
6863
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5531
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
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.