Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 10th, 2004, 05:06 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do you group fields on Web Form

Hi,

How do you group fields on Web Forms using VB .NET?

With Window Forms, you use the GroupBox Control - what is the equivalent with Web Forms?

Regards


Kerry O'Carroll
__________________
Kerry O\'Carroll
 
Old October 11th, 2004, 12:36 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Using Panel Control

 
Old October 11th, 2004, 05:29 AM
Registered User
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well you can use a div tag and and setup an ID and say run at server. If you are trying to tell server that you want this section to disappear or this whole section be disabled this might be the way. I am doing it like this for the website I am working.

 
Old October 11th, 2004, 08:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Santhi is correct. Use a panel control. Then if you are wanting to hide the entire section, as vshriniwasan suggests, you can set the visible property to false.

J
 
Old October 11th, 2004, 04:54 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Thanks for your advice. I have tried panel control and all the fields bunch up to the top left cormer of the panel and wrap. How do I stop this wrapping as I want to layout items within the panel.


Kerry O'Carroll
 
Old October 11th, 2004, 11:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

You probably have your pagelayout property set to FlowLayout. This is the similar to building regular HTML pages without absolute positioning. You can insert a table and then put your controls in the different rows/columns.

Or you can change the pagelayout property to GridLayout and use absolute positioning.

J
 
Old October 11th, 2004, 11:15 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Panel Control layouts item horizontally according to the width specified for the Panel.Wrap will be true by default it specifies whether the item inside the control comes to next line if it doesn't fit in panel width.Panel control renders HTML Div element.
   You use our HTML technique for laying out the items inside the panel control.Use <BR> or &nbsp; accordingly.

 
Old October 11th, 2004, 11:15 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

You can add a table inside the panel and place your controls inside. This way you can make sure your application is browser independent

Regards
Ganesh
 
Old October 11th, 2004, 11:20 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

You use Table also for laying out..

 
Old October 11th, 2004, 11:21 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Santhi is correct. Another way to do is not to specify any widht (for that matter an inline style) and then place the controls inside a table. This will ensure that the controls are aligned as per the specifications mentioned in the table

Regards
Ganesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
copy fields from Form to new form - openargs justabeginner Access VBA 1 February 4th, 2007 01:28 PM
How to group by two Fields in CR.NET pajer Crystal Reports 2 October 14th, 2004 05:29 AM
Group on multiple fields leep Crystal Reports 2 May 21st, 2004 01:12 AM
Running Total Fields per Group edramail Crystal Reports 0 May 6th, 2004 08:19 PM
web application, get group name - active directory sara_1981 VB.NET 0 April 24th, 2004 01:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.