472,145 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

q: current screen resolution

Hello,
Is there any way I can get current screen resolution setting in asp.net. I
am trying to get it and set the reportviewer component size so that scroll
bars on the reportviewer component are always displayed on the screen.
Thanks,
Jim.

Nov 19 '05 #1
3 3237
=?Utf-8?B?SklNLkgu?= <JI**@discussions.microsoft.com> wrote in
news:F2**********************************@microsof t.com:
Hello,
Is there any way I can get current screen resolution setting in
asp.net. I am trying to get it and set the reportviewer component size
so that scroll bars on the reportviewer component are always displayed
on the screen. Thanks,

Not sure in ASP.NET directly... but you can always use BrowserHawk. Or
perhaps javascript + submit or querystring to the server?

var wid = screen.width; //Get the screen width
var hite = screen.height; //Get the screen height
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
Hi, Jim.

I didn't know the answer to your question.

I Googled for "screen resolution asp.net" :
http://www.google.com/search?hl=en&q...lution+asp.net
and the first link returned is :

http://www.devcity.net/Articles/64/1...esolution.aspx

See a working example at :
http://asp.net.do/test/resolution.aspx

Google is your friend.
Please check it before posting your questions.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:F2**********************************@microsof t.com...
Hello,
Is there any way I can get current screen resolution setting in asp.net. I
am trying to get it and set the reportviewer component size so that scroll
bars on the reportviewer component are always displayed on the screen.
Thanks,
Jim.

Nov 19 '05 #3
Hi Jim,

Did you mean screen size (dimensions)? If so, you might be interested in
Andy Smith's free code that helps you determine that:

http://www.metabuilders.com/Tools/ResizeMonitor.aspx

Ken

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:F2**********************************@microsof t.com...
Hello,
Is there any way I can get current screen resolution setting in asp.net. I
am trying to get it and set the reportviewer component size so that scroll
bars on the reportviewer component are always displayed on the screen.
Thanks,
Jim.


Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Chris | last post: by
1 post views Thread by Carlos Albert | last post: by
5 posts views Thread by Maxi | last post: by
4 posts views Thread by pedestrian via DotNetMonster.com | last post: by
9 posts views Thread by Steve Wright | last post: by
3 posts views Thread by Joe Withawk | last post: by
3 posts views Thread by Thomas Morton | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

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.