473,407 Members | 2,312 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,407 software developers and data experts.

How to get client size in server code ?

I have dynamic controls, and I want to change the display accoring to the
client browser resolution.

I have tried browser capabilites, but I did not get size.

How could I do it ?

Thanks.
François.
Sep 24 '07 #1
3 2856
in javascript you can access the window.screen object which has all the
properties you need. normally you write a sniffer page (one with an auto
postback) to find this stuff (screen res, javascript enabled, active/x) out.

-- bruce (sqlwork.com)

Francois wrote:
I have dynamic controls, and I want to change the display accoring to the
client browser resolution.

I have tried browser capabilites, but I did not get size.

How could I do it ?

Thanks.
François.

Sep 24 '07 #2
I am back to ASP / VB script. I though I could find something better in
DotNET 2.0 classes.

Thanks.
"bruce barker" <no****@nospam.coma écrit dans le message de news:
ea**************@TK2MSFTNGP05.phx.gbl...
in javascript you can access the window.screen object which has all the
properties you need. normally you write a sniffer page (one with an auto
postback) to find this stuff (screen res, javascript enabled, active/x)
out.

-- bruce (sqlwork.com)

Francois wrote:
>I have dynamic controls, and I want to change the display accoring to the
client browser resolution.

I have tried browser capabilites, but I did not get size.

How could I do it ?

Thanks.
François.

Sep 24 '07 #3
On Sep 24, 6:52 pm, "Francois" <francois@corebridgecomwrote:
I am back to ASP / VB script. I though I could find something better in
DotNET 2.0 classes.

Thanks.

"bruce barker" <nos...@nospam.coma écrit dans le message de news:
ea16Jes$HHA.1...@TK2MSFTNGP05.phx.gbl...
in javascript you can access the window.screen object which has all the
properties you need. normally you write a sniffer page (one with an auto
postback) to find this stuff (screen res, javascript enabled, active/x)
out.
-- bruce (sqlwork.com)
Francois wrote:
I have dynamic controls, and I want to change the display accoring to the
client browser resolution.
I have tried browser capabilites, but I did not get size.
How could I do it ?
Thanks.
François.- Hide quoted text -

- Show quoted text -
js-trick is here
http://www.devcity.net/Articles/64/1...esolution.aspx

Sep 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
3
by: Chris | last post by:
I think I placed this in the wrong news group so I'm moving it here. Suggestion to Microsoft make the categories more clear and make better sense. ASP.NET should be its own group, why bury under...
0
by: Harley | last post by:
Hello, I am just learning the tcp/ip functions etc under vb.net so please look over me if this is obviouse. I have been all over looking into any functions that I didn't totaly understand and...
10
by: Ben | last post by:
Hi, I made an application in classic asp (reservation of books and video stuffs for students) and want to migrate to asp.net. The user has to chose a date, then pushung on a submit button. The...
5
by: Yossarian | last post by:
I have a handheld running CE .NET 4.2 and I am using c# with framework 1.1 to develop a solution for syncing data that is on the handheld with the local pc. Our handheld cradles only support...
10
by: Betina Andersen | last post by:
I have inherited a VB.NET dll that I am using from common asp. My problem is to get the messages from the dll to the Ie client, I can see the messages in the Eventlog on the IIS server so I know...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
0
by: sarahnetworking | last post by:
Hello, I have developed a client server application using C. i have a list of usernames and a list of passwords in a text file. i need to be able to do 2 loops so i can send the usernames and...
3
by: dynamo08 | last post by:
Hi, I am new to socket programming, I wrote an ftpclient which connects to an ftp server and downloads a file to the client computer. Now in one client connection I want to download multiple files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.