[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

how to get the Mobile Device screen width

Sumantra

8/24/2006 12:28:00 PM

Hi ,
Does anybody know how to get the Mobile Device screen width and height. I
want an image to be displayed based on the Client mobile device's width. The
ScreenPixelsWidth or ScreenCharectersWidth is not giving the right width.
From the web if I access the application everytime it is taking 640 as
screen Width. How to do it? Plz help.

1 Answer

Jay

11/1/2006 5:14:00 AM

0

Hi,

There is no specific API to get the width of the mobile phones. What you can
do is please try to split 3 types.

1.Small images
2.Medium Images
3Large Image size. in the web.config file define based on the mobile you get
display images.

But one thing you need real phone to see what type of images you can display

-Jay



"Sumantra" wrote:

> Hi ,
> Does anybody know how to get the Mobile Device screen width and height. I
> want an image to be displayed based on the Client mobile device's width. The
> ScreenPixelsWidth or ScreenCharectersWidth is not giving the right width.
> From the web if I access the application everytime it is taking 640 as
> screen Width. How to do it? Plz help.
>