I am developing ASP.Net application using VB
using VS.2003. I have more than 100 ASP server controls on the form. It is
taking lot of time to position them on the screen. Is there any easy way to
do that ? I am using grid layout.
Please advice.
San 5 1197
I would recommend moving away from grid control, as it has to place each of
the controls based on X and Y coordinates. They will paint in the order they
were placed on the form, unless you alter the order by setting them.
I find it much better to create tables and place items in tables, much like
FrontPage or Dreamweaver, rather than using the grid. In addition to more
easily painting the page, you will also find the size diminishes by getting
rid of all of the X, Y and Z coords.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** *************
Think outside the box!
************************************************** *************
"San Ramon" <Sa********@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... I am developing ASP.Net application using VB using VS.2003. I have more than 100 ASP server controls on the form. It
is taking lot of time to position them on the screen. Is there any easy way
to do that ? I am using grid layout. Please advice. San
I STRONGLY agree that tables are the way to go. First step is to determine
the target screen resolution of your audience. Since 800 x 600 is currently
the most common resolution (for home users), you would back 30 to 40 pixels
off the horizontal (to leave room for the browser's border and scroll bar),
which would leave say 760 pixels to work with.
Now create a table that has the desired row/column configuration but is not
wider than 760 pixels. Remember to count the table border if using one, the
cellpadding of EACH cell and the cellspacing between EACH cell or you'll
actually go over your target maximum width (760).
Place your controls in the correct cells of the table using standard HTML
paragraphs and line breaks.
When you are done, you'll have all the controls held securely in place in a
table that will look the same to anyone, regardless of their particular
screen resolution.
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote
in message news:OQ**************@TK2MSFTNGP12.phx.gbl... I would recommend moving away from grid control, as it has to place each
of the controls based on X and Y coordinates. They will paint in the order
they were placed on the form, unless you alter the order by setting them.
I find it much better to create tables and place items in tables, much
like FrontPage or Dreamweaver, rather than using the grid. In addition to more easily painting the page, you will also find the size diminishes by
getting rid of all of the X, Y and Z coords.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************** ************* Think outside the box! ************************************************** ************* "San Ramon" <Sa********@yahoo.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... I am developing ASP.Net application using VB using VS.2003. I have more than 100 ASP server controls on the form. It is taking lot of time to position them on the screen. Is there any easy way to do that ? I am using grid layout. Please advice. San
Can you please show me an example with two controls(one is label and one
more is edit box) in it.
I appreciate your suggestion.
San
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl... I STRONGLY agree that tables are the way to go. First step is to
determine the target screen resolution of your audience. Since 800 x 600 is
currently the most common resolution (for home users), you would back 30 to 40
pixels off the horizontal (to leave room for the browser's border and scroll
bar), which would leave say 760 pixels to work with.
Now create a table that has the desired row/column configuration but is
not wider than 760 pixels. Remember to count the table border if using one,
the cellpadding of EACH cell and the cellspacing between EACH cell or you'll actually go over your target maximum width (760).
Place your controls in the correct cells of the table using standard HTML paragraphs and line breaks.
When you are done, you'll have all the controls held securely in place in
a table that will look the same to anyone, regardless of their particular screen resolution.
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM>
wrote in message news:OQ**************@TK2MSFTNGP12.phx.gbl... I would recommend moving away from grid control, as it has to place each of the controls based on X and Y coordinates. They will paint in the order they were placed on the form, unless you alter the order by setting them.
I find it much better to create tables and place items in tables, much like FrontPage or Dreamweaver, rather than using the grid. In addition to
more easily painting the page, you will also find the size diminishes by getting rid of all of the X, Y and Z coords.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************** ************* Think outside the box! ************************************************** ************* "San Ramon" <Sa********@yahoo.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... I am developing ASP.Net application using VB using VS.2003. I have more than 100 ASP server controls on the form.
It is taking lot of time to position them on the screen. Is there any easy
way to do that ? I am using grid layout. Please advice. San
Tables come in all different shapes and sizes. Here is a simple 3 row by 2
column table that is 760 pixels wide with a label in row 1, column 1 and a
textbox in row 1, column 2.
I should also tell you that this is pretty basic HTML stuff (knowing to use
tables to layout the page). You may want to brush up on HTML techniques
before going to far into asp.net.
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits="WebApplication1.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body >
<form id="Form1" method="post" runat="server">
<TABLE ID="Table1" CELLSPACING="1" CELLPADDING="1" WIDTH="760" BORDER="0">
<TR>
<TD><asp:Label id="Label1" runat="server">Label</asp:Label></TD>
<TD><asp:TextBox id="TextBox1" runat="server"></asp:TextBox></TD></TR>
<TR>
<TD></TD>
<TD></TD></TR>
<TR>
<TD></TD>
<TD></TD></TR></TABLE>
</form>
</body>
</HTML>
"San Ramon" <Sa********@yahoo.com> wrote in message
news:eZ*************@TK2MSFTNGP12.phx.gbl... Can you please show me an example with two controls(one is label and one more is edit box) in it. I appreciate your suggestion. San
"Scott M." <s-***@BADSPAMsnet.net> wrote in message news:Oa**************@TK2MSFTNGP10.phx.gbl... I STRONGLY agree that tables are the way to go. First step is to determine the target screen resolution of your audience. Since 800 x 600 is currently the most common resolution (for home users), you would back 30 to 40 pixels off the horizontal (to leave room for the browser's border and scroll bar), which would leave say 760 pixels to work with.
Now create a table that has the desired row/column configuration but is not wider than 760 pixels. Remember to count the table border if using one, the cellpadding of EACH cell and the cellspacing between EACH cell or you'll actually go over your target maximum width (760).
Place your controls in the correct cells of the table using standard
HTML paragraphs and line breaks.
When you are done, you'll have all the controls held securely in place
in a table that will look the same to anyone, regardless of their particular screen resolution.
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote in message news:OQ**************@TK2MSFTNGP12.phx.gbl... I would recommend moving away from grid control, as it has to place
each of the controls based on X and Y coordinates. They will paint in the
order they were placed on the form, unless you alter the order by setting them.
I find it much better to create tables and place items in tables, much like FrontPage or Dreamweaver, rather than using the grid. In addition to more easily painting the page, you will also find the size diminishes by
getting rid of all of the X, Y and Z coords.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************** ************* Think outside the box! ************************************************** ************* "San Ramon" <Sa********@yahoo.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... > I am developing ASP.Net application using VB > using VS.2003. I have more than 100 ASP server controls on the
form. It is > taking lot of time to position them on the screen. Is there any easy way to > do that ? I am using grid layout. > Please advice. > San > >
Thank you very much
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Tables come in all different shapes and sizes. Here is a simple 3 row by
2 column table that is 760 pixels wide with a label in row 1, column 1 and a textbox in row 1, column 2.
I should also tell you that this is pretty basic HTML stuff (knowing to
use tables to layout the page). You may want to brush up on HTML techniques before going to far into asp.net.
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>WebForm1</title> <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0"> <meta name="CODE_LANGUAGE" content="Visual Basic 7.0"> <meta name=vs_defaultClientScript content="JavaScript"> <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body >
<form id="Form1" method="post" runat="server"> <TABLE ID="Table1" CELLSPACING="1" CELLPADDING="1" WIDTH="760" BORDER="0"> <TR> <TD><asp:Label id="Label1" runat="server">Label</asp:Label></TD> <TD><asp:TextBox id="TextBox1" runat="server"></asp:TextBox></TD></TR> <TR> <TD></TD> <TD></TD></TR> <TR> <TD></TD> <TD></TD></TR></TABLE>
</form>
</body> </HTML>
"San Ramon" <Sa********@yahoo.com> wrote in message news:eZ*************@TK2MSFTNGP12.phx.gbl... Can you please show me an example with two controls(one is label and one more is edit box) in it. I appreciate your suggestion. San
"Scott M." <s-***@BADSPAMsnet.net> wrote in message news:Oa**************@TK2MSFTNGP10.phx.gbl... I STRONGLY agree that tables are the way to go. First step is to determine the target screen resolution of your audience. Since 800 x 600 is currently the most common resolution (for home users), you would back 30 to 40 pixels off the horizontal (to leave room for the browser's border and scroll bar), which would leave say 760 pixels to work with.
Now create a table that has the desired row/column configuration but
is not wider than 760 pixels. Remember to count the table border if using
one, the cellpadding of EACH cell and the cellspacing between EACH cell or
you'll actually go over your target maximum width (760).
Place your controls in the correct cells of the table using standard
HTML paragraphs and line breaks.
When you are done, you'll have all the controls held securely in place in a table that will look the same to anyone, regardless of their
particular screen resolution.
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote in message news:OQ**************@TK2MSFTNGP12.phx.gbl... > I would recommend moving away from grid control, as it has to place each of > the controls based on X and Y coordinates. They will paint in the order they > were placed on the form, unless you alter the order by setting them. > > I find it much better to create tables and place items in tables,
much like > FrontPage or Dreamweaver, rather than using the grid. In addition to more > easily painting the page, you will also find the size diminishes by getting > rid of all of the X, Y and Z coords. > > -- > Gregory A. Beamer > MVP; MCP: +I, SE, SD, DBA > > ************************************************** ************* > Think outside the box! > ************************************************** ************* > "San Ramon" <Sa********@yahoo.com> wrote in message > news:%2****************@tk2msftngp13.phx.gbl... > > I am developing ASP.Net application using VB > > using VS.2003. I have more than 100 ASP server controls on the
form. It > is > > taking lot of time to position them on the screen. Is there any
easy way > to > > do that ? I am using grid layout. > > Please advice. > > San > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: angelina |
last post by:
hi,
I have added a progress bar to my statusbar control. the
problem i am having is that it appears in the
far left as default. I want it to appear in the far right
side of my form. Can anyone...
|
by: Robert |
last post by:
Hello.
I have been trying out the Lebans ToolTip Classes at
http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a
form. The classes I am using are located at...
|
by: TD |
last post by:
This is the code under a command button -
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.BackColor <> RGB(255, 255, 255) Then
ctl.BackColor = RGB(255, 255, 255)
End If
Next ctl
|
by: Roger |
last post by:
Hi
In a Windows forms application I have 2 forms A and B; Form B inherits from
form A. Form A is never displayed and its only purpose is to be inherited
from and therefore contains mostly...
|
by: Mr Newbie |
last post by:
I was thinking about developing a workflow application yesterday and was
musing over the different approaches than one could take in restricting
specific actions on a ticket( Form ) at any said...
|
by: Mike Bulava |
last post by:
I have created a base form that I plan to use throughout my application let
call the form form1. I have Built the project then add another form that
inherits from form1, I add a few panel controls...
|
by: Michael |
last post by:
Hi
I been having a little problem on both a work and home projects. For work, I
have created a user control with a few textboxs and 2 dropdownlists, here is
the code:
<table...
|
by: Ryan |
last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip,
data binding elements (dataset, binding source, table adapter), tab control
with 7 tab pages, each page contains a...
|
by: Akinyemi |
last post by:
I am creating a database in MSAccess 2000 for my Payroll Program I am writing. I want to save an image representing an employee in the record of each employee. I then want to post the name of each...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |