Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Appearance of Web Form controls in non-IE browsers

Reply
Thread Tools

Appearance of Web Form controls in non-IE browsers

 
 
Alex
Guest
Posts: n/a
 
      08-16-2003
Just starting with ASP.Net, sorry in for the basic
question.

All my Web Form controls (text boxes, combo boxes, data
grids, etc.) appear totally different when viewed in any
browser other than IE: differt size, background, and
borders. Is there an easy way to achieve consistency
between how the controls look in IE and, say, Netscape.

Many thanks in advance.
 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      08-16-2003
Alex,

The easiest way to do this is to set the TargetSchema property of the page
object.

You can do this in design view. Set the property window's drop down to
document and you'll see the TargetSchema property in the list. You can set a
page's output to target older browsers if you want.

If you are targeting newer browsers (netscape 7.0, IE6, opera's latest
version, etc.) They should all appear pretty similar. My site for example
appears exactly the same in all and my target schema is set for internet
explorer 5.0.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


"Alex" <> wrote in message
news:010001c363af$78190c80$...
> Just starting with ASP.Net, sorry in for the basic
> question.
>
> All my Web Form controls (text boxes, combo boxes, data
> grids, etc.) appear totally different when viewed in any
> browser other than IE: differt size, background, and
> borders. Is there an easy way to achieve consistency
> between how the controls look in IE and, say, Netscape.
>
> Many thanks in advance.



 
Reply With Quote
 
 
 
 
alex
Guest
Posts: n/a
 
      08-17-2003
Justin -

Thanks for your reply. I've checked my TargetSchema
property, and it is indeed set to IE5. But the size of my
text boxes jumps significantly from one browse to
another. Could you think of something else? Otherwise,
thanks again for trying to help out.

Alex

>-----Original Message-----
>Alex,
>
>The easiest way to do this is to set the TargetSchema

property of the page
>object.
>
>You can do this in design view. Set the property window's

drop down to
>document and you'll see the TargetSchema property in the

list. You can set a
>page's output to target older browsers if you want.
>
>If you are targeting newer browsers (netscape 7.0, IE6,

opera's latest
>version, etc.) They should all appear pretty similar. My

site for example
>appears exactly the same in all and my target schema is

set for internet
>explorer 5.0.
>
>Sincerely,
>
>--
>S. Justin Gengo, MCP
>Web Developer
>
>Free code library at:
>www.aboutfortunate.com
>
>"Out of chaos comes order."
> Nietzche
>
>
>"Alex" <> wrote in message
>news:010001c363af$78190c80$...
>> Just starting with ASP.Net, sorry in for the basic
>> question.
>>
>> All my Web Form controls (text boxes, combo boxes, data
>> grids, etc.) appear totally different when viewed in any
>> browser other than IE: differt size, background, and
>> borders. Is there an easy way to achieve consistency
>> between how the controls look in IE and, say, Netscape.
>>
>> Many thanks in advance.

>
>
>.
>Thanks for

 
Reply With Quote
 
Sabre
Guest
Posts: n/a
 
      08-18-2003
Alex you might be able to do something like (maybe in Page_Load) ...

Textbox11.Attributes.Add("style",
"width:160px;left:144px;top:40px;position:absolute ;")

Button4.Attributes.Add("style",
"height:24px;width:76px;left:312px;top:40px;positi on:absolute;")


It can be a pain doing lots of controls, but renders better in Netscape etc
than without.
Hope this helps
Graeme

"Alex" <> wrote in message
news:010001c363af$78190c80$...
> Just starting with ASP.Net, sorry in for the basic
> question.
>
> All my Web Form controls (text boxes, combo boxes, data
> grids, etc.) appear totally different when viewed in any
> browser other than IE: differt size, background, and
> borders. Is there an easy way to achieve consistency
> between how the controls look in IE and, say, Netscape.
>
> Many thanks in advance.



 
Reply With Quote
 
Steven Campbell
Guest
Posts: n/a
 
      08-20-2003
Alex wrote:

> Just starting with ASP.Net, sorry in for the basic
> question.
>
> All my Web Form controls (text boxes, combo boxes, data
> grids, etc.) appear totally different when viewed in any
> browser other than IE: differt size, background, and
> borders. Is there an easy way to achieve consistency
> between how the controls look in IE and, say, Netscape.
>
> Many thanks in advance.


For some controls, there is a "columns" property that works more
consistently across broswers than the width property. The number
corresponds to the number of characters to show in the box. To make it
work, you must leave the width property blank.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browsers, browsers! Quo vadis? El Kabong HTML 23 05-13-2007 08:55 PM
Web Parts - EditorZone - Changing the appearance of a web part Matt Adamson ASP .Net Web Controls 1 01-29-2007 03:11 PM
Two Browsers work! Two browsers won't load. Internet game service won't load jimmie Computer Support 1 02-26-2006 08:36 AM
appearance of user controls has changed bill ASP .Net 0 02-22-2006 08:03 PM
XForms: customized appearance for controls wumingshi XML 0 04-28-2005 07:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57