How to subscribe to a blog from another site?
Request.Browser
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > .Net Development > Request.Browser 23 December 2009 06:57:42

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

Request.Browser

Mark Kucera 23 August 2006 17:58:14
 Has anyone had any luck w/ using Request.Browser in ASP.NET 2.0?
Specifically the Request.Browser.Scr­eenPixelsHeight,
Request.Browser.Scr­eenPixelsWidth don't seem to return correct results.
When I check these values they just report 640x480 which is not my
current resolution (1600x1200). I tried it in FireFox and IE so it
doesn't appear to be a browser issue. Is there anything I can do to
make these properties return correct values? I tried to google for this
info, but surprisingly there isn't much out there...

Thanks for any insight you can provide.
MK

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Adrian Martin 23 August 2006 18:09:11 permanent link ]
 The property you are requesting is actually a member of
HttpCapabilitiesBas­e
It's values are provided from the servers config files, NOT from the
client itself - you would have to use javascript to retrieve client side
values.




-----Original Message-----
From: Discussion of building .NET applications targeted for the Web
[mailto:D­OTNET-WEB@DISCUSS.DEVELOP.COM] On Behalf Of Mark Kucera
Sent: Wednesday 23 August 2006 14:58
To: DOTNET-WEB@DISCUSS.­DEVELOP.COM
Subject: Request.Browser

Has anyone had any luck w/ using Request.Browser in ASP.NET 2.0?
Specifically the Request.Browser.Scr­eenPixelsHeight,
Request.Browser.Scr­eenPixelsWidth don't seem to return correct results.
When I check these values they just report 640x480 which is not my
current resolution (1600x1200). I tried it in FireFox and IE so it
doesn't appear to be a browser issue. Is there anything I can do to
make these properties return correct values? I tried to google for this
info, but surprisingly there isn't much out there...

Thanks for any insight you can provide.
MK

===================­================
This list is hosted by DevelopMentor(r) http://www.develop.­com

View archives and manage your subscription(s) at
http://discuss.deve­lop.com





Opinions expressed in this email are those of the writer and not the company. E-mail traffic is monitored within Johnston Press and messages may be viewed. This e-mail and any files with it are solely for the use of the addressee(s). If you are not the intended recipient, you have received this e-mail in error. Please delete it or return it to the sender or notify us by email at postmaster@jpress.c­o.uk

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Efran Cobisi 23 August 2006 18:12:15 permanent link ]
 Hi Mark,

Afaik all of the browser capabilities are extracted from the http
headers sent by the client to the server. Asp.net 2.0 contains a very
powerful technology to accomplish this using a set of regular
expressions, applied to the aforementioned headers: you could access the
code for each one of them (and add you own, if needed) in the
\v2.0.50727\CONFIG\­Browsers folder, checking out every .browser file.
You should see that ScreenPixelsWidth/H­eight is available only for a
small set of known user agent, namely Treo600 and other mobile devices
which, in fact, send these informations embedded in one of the http
headers they use. To extract those values from the browsers not
supported by this mechanism you should use javascript, if available.

HTH

Efran Cobisi, cobisi.com

Mark Kucera wrote:> Has anyone had any luck w/ using Request.Browser in ASP.NET 2.0?> Specifically the Request.Browser.Scr­eenPixelsHeight,> Request.Browser.Scr­eenPixelsWidth don't seem to return correct results.> When I check these values they just report 640x480 which is not my> current resolution (1600x1200). I tried it in FireFox and IE so it> doesn't appear to be a browser issue. Is there anything I can do to> make these properties return correct values? I tried to google for this> info, but surprisingly there isn't much out there...>
Thanks for any insight you can provide.> MK>
===================­================> This list is hosted by DevelopMentor http://www.develop.­com>
View archives and manage your subscription(s) at http://discuss.deve­lop.com>

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Mark Kucera 23 August 2006 18:41:46 permanent link ]
 Thanks Efran, this does help. I am familiar w/ the http headers and was
figuring this info must be coming from there, but as to how I wasn't
sure. It makes sense that these properties would be more applicable to
hand-held devices and such, however it would be nice to see a little bit
more detailed msdn documentation on this class and these methods like
you've provided below.

Thanks for your input
MK


-----Original Message-----
From: Discussion of building .NET applications targeted for the Web
[mailto:D­OTNET-WEB@DISCUSS.DEVELOP.COM] On Behalf Of Efran Cobisi
Sent: Wednesday, August 23, 2006 10:12 AM
To: DOTNET-WEB@DISCUSS.­DEVELOP.COM
Subject: Re: [DOTNET-WEB] Request.Browser

Hi Mark,

Afaik all of the browser capabilities are extracted from the http
headers sent by the client to the server. Asp.net 2.0 contains a very
powerful technology to accomplish this using a set of regular
expressions, applied to the aforementioned headers: you could access the
code for each one of them (and add you own, if needed) in the
\v2.0.50727\CONFIG\­Browsers folder, checking out every .browser file.
You should see that ScreenPixelsWidth/H­eight is available only for a
small set of known user agent, namely Treo600 and other mobile devices
which, in fact, send these informations embedded in one of the http
headers they use. To extract those values from the browsers not
supported by this mechanism you should use javascript, if available.

HTH

Efran Cobisi, cobisi.com

Mark Kucera wrote:> Has anyone had any luck w/ using Request.Browser in ASP.NET 2.0?> Specifically the Request.Browser.Scr­eenPixelsHeight,> Request.Browser.Scr­eenPixelsWidth don't seem to return correct
results.> When I check these values they just report 640x480 which is not my> current resolution (1600x1200). I tried it in FireFox and IE so it> doesn't appear to be a browser issue. Is there anything I can do to> make these properties return correct values? I tried to google for
this> info, but surprisingly there isn't much out there...>
Thanks for any insight you can provide.> MK>
===================­================> This list is hosted by DevelopMentor(r) http://www.develop.­com>
View archives and manage your subscription(s) at
http://discuss.deve­lop.com>

===================­================
This list is hosted by DevelopMentor(r) http://www.develop.­com

View archives and manage your subscription(s) at
http://discuss.deve­lop.com

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Guest 9 June 2009 07:14:30 permanent link ]
 Yes i can use a javascript to get the screen resolution but if i want to set the height and
width of any of my page's control based on the client resolution then what should i do.
If any body has an idea then let me know
Add comment
Guest 13 December 2009 11:07:59 permanent link ]
 salam =^B­ salam
Add comment
Guest 23 December 2009 06:57:42 permanent link ]
 S11223J2 Currently, Timberland is one of the most famous Timberland Classic brands. Throughout the 1990s, the popularity of the Timberland Kids Boot reached an important point. Also, in that time, the company added more mens Timberland 6 Inch products and lines to its catalog. Now, the prestige as a Timberland custom boots brand with excellent products is unquestionable.
In preparation for the upcoming cold seasons, the company has launched its collection called Timberland Women's Boots, which is already available at the Timberland stores. http://www.timberla­nder.com/products_al­l.html
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > .Net Development > Request.Browser 23 December 2009 06:57:42

see also:
Win32 libpq and ecpg thread safety
Variable return type...
pass tests:
see also:
How to Copy/Backup DVD(for Mac and…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .