469,889 Members | 1,352 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,889 developers. It's quick & easy.

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 2741
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Chris | last post: by
5 posts views Thread by Yossarian | last post: by
10 posts views Thread by Betina Andersen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.