473,385 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Vertical Panel

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
Feb 7 '06 #1
4 4361
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

Feb 7 '06 #2
You can use a table to arrange such uncooperative controls.
The root of the issue is block elements. Here are more details:
http://geekswithblogs.net/mcastro/ar.../19/66393.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP
http://Steve.Orr.net

"Jonathan Wood" wrote:
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

Feb 7 '06 #3
Thanks! I've printed out your response and will go over it in more detail
later.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2***************@TK2MSFTNGP15.phx.gbl...
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


Feb 8 '06 #4
Thanks! I've printed out your response and will go over it in more detail
later.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"Steve C. Orr" <St***@Orr.net> wrote in message
news:40**********************************@microsof t.com...
You can use a table to arrange such uncooperative controls.
The root of the issue is block elements. Here are more details:
http://geekswithblogs.net/mcastro/ar.../19/66393.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP
http://Steve.Orr.net

"Jonathan Wood" wrote:
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

Feb 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: John Baker | last post by:
Hi: I have a user who has labels that are set up 3 across and 11 vertical (which is unusual at best), and he wants me to print names and addresses on them. I have already set up for labels 10...
2
by: chris | last post by:
hi all, i need to create vertical scrollbar dynamically for the controls that are created dynamically in the form. (i'm not adding any controls to the panel). when the form exceeds(coz of...
1
by: ReidarT | last post by:
Is it possible to have a scrollbar on a panel, or do I have to use frames to have on frame with vertical scrollbar? reidarT
0
by: Gene Hubert | last post by:
I've got two treeviews side by side on a panel on a form. They each have about 20 nodes in them. The treeview on the right has a vertical scrollbar. The treeview on the left needs a vertical...
0
by: billy_cormic | last post by:
Hello, I am currently using Visual Studio 2005 for a project and I am attempting to employing the new treeview control using VB.net. I have placed the treeview on top of a panel and have enabled...
2
by: alwayssmiling | last post by:
hi, In my application for the panel control im adding seperate vertical scroll control, if i manually scrolls it, then its working fine i.e im able to scroll. But how to scroll with the mouse...
2
by: Wilfried Mestdagh | last post by:
Hi, I want to add a Label on a panel programatically. No problem. But I can't seems to manage that the label is centered horizontal and vertical in the panel. I experimented with TextAlign and...
1
by: 123456prakash | last post by:
Does anyone know if it is possible to set programmatically the position of a JScrollPane vertical scrollbar slider? I load a some components like textfield editorpane labels etc into a panel...
1
by: Nathan Laff | last post by:
I have a panel that I want to AutoSize with an AutoSize mode of GrowAndShrink, but I only want it to autosize vertically. Reason being I have anchors set up to a usercontrol which can resize. ...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.