|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WebForm's SizeHi,
I have got a webform. I want to get the current size of the user window such as 19", 17" or 15". Later on, I want to resize my webform's window size respect to user's window's size. Then I want to make false the enable state of resize icon of the webform. How can I do this operation? Thanks. -- neo00 ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------ It's a bit more involved than this. You can't get the user's monitor size
in inches (that doesn't matter anyway). What you want to get is the client's screen resolution. This can be accomplished only with client-side code using the "screen" object. You would then need to pass this data to the server so that the controls could be positioned accordingly. There is no "resize icon" on a webform. Generally speaking, you determine who your audience is in terms of resolution and build your page for that size. Right now, 800 x 600 is the most common screen resolution for the general public. The easiest way to build a page for this resolution is to add a 1 row, 1 column 770 pixel wide table to a blank web form (770 pixels, not 800 because of the scroll bar and border of the browser will take up about 30 pixels). Then, you build your normal page inside this 1 cell, making sure not to put more than 770 pixels wide of content into it. Show quoteHide quote "neo00" <neo00.1on***@mail.codecomments.com> wrote in message news:neo00.1onltp@mail.codecomments.com... > > Hi, > I have got a webform. I want to get the current size of the user window > such as 19", 17" or 15". Later on, I want to resize my webform's window > size respect to user's window's size. Then I want to make false the > enable state of resize icon of the webform. How can I do this > operation? > Thanks. > > > > -- > neo00 > ------------------------------------------------------------------------ > Posted via http://www.codecomments.com > ------------------------------------------------------------------------ >
DropDownList selectedIndexChanged event not firing
LinkButton Control Validator Control Change print orientation by website Image auto sizing in asp.net DataGrid SortCommand Event not fired on dynamically generated datagrid Syntax for "NULL" in asp.net checkboxlist help DropDownList postback Format textbox to time format |
|||||||||||||||||||||||