Re: How can I determine the page layout (width and height)

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Steve C. Orr [MVP, MCSD] (Steve_at_Orr.net)
Date: 10/12/04


Date: Mon, 11 Oct 2004 18:09:37 -0700

The exact positioning of controls isn't determined until runtime on the
client side by the browser. So your only hope is to use client side code.
Instead I suggest going with FlowLayout, and using tables and such to
organize your controls relative to eachother, and just let the browser
handle the final details of the layout.

-- 
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Leo" <pkujchliu@yahoo.com> wrote in message 
news:81553b16.0410111627.61fafcc3@posting.google.com...
>I would like to set my customized control's layout to be the layout of
> the page in ASP.NET. Is there any way to get the width and height of
> the page thus I can set my control's width and height to them? Thanks. 


Relevant Pages

  • Re: Why 64bit Delphi compiler from Borland may be meaningless!
    ... "We had to make a choice with the 64-bit client as to which browser, ... our decision was swayed by the lack of 64-bit native controls. ... was difficult to use because web sites hadn't authored common controls ...
    (borland.public.delphi.non-technical)
  • Re: Get browser window size from C# codebehind
    ... I found a better way - all controls are using %% instead of pixels and it ... works just great and on the client side. ... > determining the size of the browser. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem starting windows forms application from ASP.Net 2.0
    ... OK, well if it is all going to run client side, then why not run it all ... controls and or code in the browser not on the server. ... Dim psi As New ProcessStartInfo ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Windows Anwendungmit einer Web mySQL als Backend?
    ... Benutzerfreundlichekeit, Geschwindigkeit (Seite muss aufgebaut werden), das ... Nun wenn ich also das alles von Web auf Client verschieben will, ... Applikation gar nicht zur Gesicht bekomme und wenn das so wäre, ... Aussage "weil ich die Controls in meiner Applikation gar nicht zur Gesicht ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: VB.net and ASP.Net Typed Datasets
    ... really needs these controls, that is a way to do it and still write the app. ... ASP.NET applications have many more advantages and so ... For these reasons we wish to use ASP.net, to have a Smart Client. ... used in any .NET language. ...
    (microsoft.public.dotnet.framework.adonet)