"Paul King" <ki******@hotmail.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
Yes ok, but how do you set the Width on the screen?
For example I want the whole ASP Form only to be a certain size.
Paul,
This sort of thing is typically done through styles - either inline styles
or by using CSS classes. For instance, if you wanted to design for an
800x600 screen, you could start off your design by adding a Panel control to
the form and setting the Panel's Height and Width properties. You can then
drag controls into the Panel, and, for instance, set their width to 100%:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<body>
<form id="Form1" method="post" runat="server">
<asp:Panel Runat="server" Height="600px" Width="800px"
id="Panel1">
<asp:DataGrid id="DataGrid1" runat="server"
Width="100%"></asp:DataGrid>
</asp:Panel>
</form>
</body>
</HTML>
You can lay out the space within the Panel by using tables, and again you
can set the width and/or height to 100%. This way you only have to change
width and/or height in one place.
--
John Saunders
johnwsaundersiii at hotmail