Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > how to get the Mobile Device screen width

Reply
Thread Tools

how to get the Mobile Device screen width

 
 
Sumantra
Guest
Posts: n/a
 
      08-24-2006
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.

 
Reply With Quote
 
 
 
 
Jay
Guest
Posts: n/a
 
      11-01-2006
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.
>

 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
iPhone4,iPhone3,Ipad,Apple Mobile,Blackberry Mobile,HTC Mobile,LGMobile,Motorola Mobile,Nokia Mobile,Samsung Mobile chen selina C++ 0 07-13-2010 08:53 AM



Advertisments