473,327 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 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 3316
=?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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Dufe | last post by:
Hello all: To deal with the problem of differing user screen resolutions, I've explored: 1) making the pages in PHP, 2) having different pages on the same page and selecting the proper one via...
5
by: Chris | last post by:
After exhausting my search on the MS website, I can't find a straight answer. I fin dit hard to believe that MS left our something so useful in ASP.NET as screen resolution detection. Problem:...
1
by: Carlos Albert | last post by:
Hi, I need to get some statistic about wich resolution are my customers using, how can I get the current screen resolution from the codebehind, so I can store it in a database?
5
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in...
4
by: pedestrian via DotNetMonster.com | last post by:
I'm creating WinForm app. I would like to set the form position according to current Screen resolution. So how could I find the current resolution? Thanks... -- Message posted via...
9
by: Steve Wright | last post by:
Hi I'm developing a webpage that needs to include a different stylesheet depending on the screen resolution. I know that I could read the resolution in javascript and then do some sort of...
3
by: Joe Withawk | last post by:
Using the Scleen class you can get information about the bounds of the displays on the system, but if you temporarely change the resolution (by creating a full screen directx device with other...
3
by: Thomas Morton | last post by:
This is a "thing" that has been annoying me all morning: and I can't work out how to do it. I need a way to get the DPI or screen resolution of the monitor that a script is currently runnign on....
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.