ASP.NET 1.1As 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
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.
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.
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.
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.
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 accordingly.
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