473,327 Members | 1,892 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,327 software developers and data experts.

Webforms are not displayed correctly in non-MS Browsers?

Hi

I coded a web application in VB.Net containing a webform, designed
with Visual Studio. The Internet Explorer is able to display it
correctly but all other browsers aren't. The attributes of all
elements for example color , width and heigth of buttons get lost so
the page looks like Garbage.
Can anyone tell me how to adapt the Page so all Browsers are able to
read it correctly? Or is this just another great idea of Microsoft to
get rid of the competing products...?

thx
Arnold
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #1
2 794
who knows why asp.net strips attributes for non IE browsers. add this code
to form_load to get around its rude behavior.

if ("netscape|gecko|opera".IndexOf(this.Request.Brows er.Browser.ToLower())
=0 ) this.ClientTarget = "Uplevel";
-- bruce (sqlwork.com)


"Arnold Franke" <ar**********@gmx-dot-de.no-spam.invalid> wrote in message
news:40**********@Usenet.com... Hi

I coded a web application in VB.Net containing a webform, designed
with Visual Studio. The Internet Explorer is able to display it
correctly but all other browsers aren't. The attributes of all
elements for example color , width and heigth of buttons get lost so
the page looks like Garbage.
Can anyone tell me how to adapt the Page so all Browsers are able to
read it correctly? Or is this just another great idea of Microsoft to
get rid of the competing products...?

thx
Arnold
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 18 '05 #2
Thank you very much! It worked perfectly.

This is the Code in VB.net Syntax I finally used:

Dim browser As String = Request.Browser.Browser.ToLower
If Not (browser.IndexOf("ie") > -1) Then
ClientTarget = "uplevel"
End If
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #3

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

Similar topics

0
by: Vaughn | last post by:
In my "Test" PC (that only contains framework v1.1), the application does not display the vertical scrollbars when the amount of rows goes beyond the space reserved for the datagrid. So there's...
2
by: Tom Wild | last post by:
Hi Is there an equivalent of the message box that can be used for webforms? When I try to use a normal message box I get the following error: "It is invalid to show a modal dialog or form when...
0
by: Kent Johnson | last post by:
Hi all, I have a webform with some international characters. These are displayed correctly in my browser. But when I export the webforms from the browser (Send page..) to Outlook the characters...
20
by: Martin Rosén-Lidholm | last post by:
Although an impossible question to answer, I fell urged to raise it anyhow. Given a fairly complex ERP application scenario, what's your estimation for the X-ratio dev. time for...
2
by: Simon | last post by:
Hi, Just to get started.... I've created a very simple web form, "Simple", using VS and I dropped a HTML img control on the design view. I referenced a picture and it is displayed in browser...
2
by: MarkusPoehler | last post by:
After saving TEXT combined with HTML Tags into a HTM File by ASP.NET using filestream, the HTM Files is not displayed correctly in IE. Umlaute & e.g. € (Euro Sign) are not shown, I get some wrong...
3
by: ton | last post by:
How can I in VB.NET set the width of a label or textbox depending on the length of the string and/or the font size. In my control I'm showing a textbox in a tablecell, which is added to a table...
4
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
by: dwight | last post by:
Hi all First - I apologise if anyone recognises this from a previous post but I never worded what I wanted to know properly and getting quick advice is imperative to me now. In future I will...
2
by: jobs | last post by:
I've got a masterpage with a custom control that has a calendar. when dates on the calendar are selected, it sets a session variable. that calender is on every page via the master page. In the home...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.