Hi John,
What I normally do is contain my controls in things that control layout and
appearance of the page. The most common way is to use a table to keep
things inline in your page. The purists will want to use CSS only, but I
find that using CSS for the basic left-nav/right-content layout doesn't
really bring any benefits.
<body>
<form runat="server">
<table width="100%" border="1">
<tr>
<td id="nav" width="20%">
<your:control id="yourcontrol" runat="server" />
</td>
<td id="content">
your stuff here
</td>
</tr>
</table>
</form>
</body>
Just make sure that in your control, you're not doing anything like "<div
style="width: 1000px;"> or anything, as that will conflict with the
encapsulating TD width (unless you have one really, really wide monitor).
Also, you'd typically want to handle widths, border styles, etc. using CSS,
but that's for another day if you're new to web development.
And, if you do go to 2005 this weekend, start reading up on master pages
right away!
Ray at work
"Jonathan Wood" <jw***@softcircuits.com> wrote in message
news:OL**************@TK2MSFTNGP10.phx.gbl...
Hello,
I'm an experienced programmer just learning to use ASP.NET with C#.
I know how to create user and custom controls and stick them on a page,
but these always appear one under the other. I'd like to develop a user or
custom control that runs down the left column of the page as many sites
do. Can someone tell me how to design such a control where text that
follows starts on the right and not underneath it?
I'm using VS 2003 but will probably upgrade to 2005 this next weekend. I'm
using flow layout.
Thanks!
--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm