Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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
  #1 (permalink)  
Old August 4th, 2006, 09:42 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default User Control on Separate Line

I've created a user control that I then place in a panel. The reason it's in a panel is that it's part of search criteria that I hide/show panels based on the type of search begin done. I can place a label next to this control in the IDE and it looks fine but when I run the app, the label is on the line above the control. I've tried placing the label INSIDE the control, placing the user control inside a <div> and allowing objects on either side and the same effect occurred.

Any help would be greatly appreciated.

Thanks.
  #2 (permalink)  
Old August 9th, 2006, 11:44 AM
Authorized User
Points: 333, Level: 6
Points: 333, Level: 6 Points: 333, Level: 6 Points: 333, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Fresno, California, USA.
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My first issue with presentation was getting things the way i wanted them without having to use absolute positioning (which by the way try to avoid as much as possible, makes html source hard to follow). I found out the best way to do this is with tables.
1) Create panel and size it to the size you want it to be in pixels.
2) Create 1 row, 2 column table sized to the length you want for the label and control together. Size the cells to be about equal but adds up to total table width. (would play with the width but leave length blank for resizing.)
3)Place label and control in cells in order you want them to appear next ot each other and then via the properties resize each cell to continue to equal total table width but different in sizes until spacing between the controls is as you like it.

I hope that made sense. That is the easiest way I found out how to do formatting. :)




Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Windows User control in Web User Control agarwalvidhu C# 0 March 30th, 2006 01:17 AM
user control somnath.kartic General .NET 1 February 11th, 2006 01:21 PM
Help! Custom Server Control using User Control diehard ASP.NET 1.0 and 1.1 Professional 2 January 4th, 2006 12:33 PM
Help with control initialization in user control mike_remember ASP.NET 1.0 and 1.1 Professional 7 December 19th, 2005 11:08 AM
User Control vision4impossible Pro VB 6 1 May 31st, 2005 03:32 PM





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