473,385 Members | 1,753 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.

How to properly place controls on a ContenPlaceHolder

When I create a web form in VS 2005 I have a problem. I created a
MasterPage with a ContentPlaceHolder object on it. Then I created a
detail page that refrenced the Master Page. When I drag controls onto
the ControlPlaceHolder on the Detail page, the controls end up at the
upper left corner of the page and I have to drag them down onto the
ControlPlaceHolder. The controls are coded in the HTML as position =
absolute and I don't think that's the most correct setting, but I'm not
sure. Should the controls be position = relative?

I don't understand the logic behind placing these controls and I can't
get them placed uniformly on the ControlPlaceHolder on the detail page.
When the page is rendered in the browser, some controls that were
located on the ControlPlaceHolder in desogn view will end up below the
ControlPlaceHolder.
I also don't know how to resize the ControlPlaceHolder from the Master
Page. What's the trick?

Thanks,

Bill
Cincinnati, OH USA

Jul 28 '06 #1
1 2064
think of the controlplaceholder for your details page as the entire page.
basically all your content must go inbetween the opening and closing tag of
the contentplace holder in the details page.
also try not to put anything in the place holder of the masterpage unless
you really want to get confused.

as far as placing controls yes its best not to use absolute. Now placing
controls in the web world is not a simple fast task and some people spend a
great deal of their time just doing that proffesionally so alocate time for
that..;)

basically you need to use <divand <tableand <asp:panelstuff to place
things.
I use a ton of html tables and it takes awhile to learn how to use them.

try this for starters
<table align="center">
<tr>
<td>hi</td>
</tr>
</table>

if you already knew this I sorry

"na******************@gmail.com" wrote:
When I create a web form in VS 2005 I have a problem. I created a
MasterPage with a ContentPlaceHolder object on it. Then I created a
detail page that refrenced the Master Page. When I drag controls onto
the ControlPlaceHolder on the Detail page, the controls end up at the
upper left corner of the page and I have to drag them down onto the
ControlPlaceHolder. The controls are coded in the HTML as position =
absolute and I don't think that's the most correct setting, but I'm not
sure. Should the controls be position = relative?

I don't understand the logic behind placing these controls and I can't
get them placed uniformly on the ControlPlaceHolder on the detail page.
When the page is rendered in the browser, some controls that were
located on the ControlPlaceHolder in desogn view will end up below the
ControlPlaceHolder.
I also don't know how to resize the ControlPlaceHolder from the Master
Page. What's the trick?

Thanks,

Bill
Cincinnati, OH USA

Jul 29 '06 #2

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

Similar topics

8
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and...
1
by: Roberto Castro | last post by:
I have some problems with the way I am showing the BLOB fields in the Image web controls. It does work on my localhost though sometimes I need to hit Refresh for the images to load properly....
0
by: jb_in_marietta | last post by:
All, I have written a very simple custom composite control that includes a control of type System.Web.UI.WebControls.Table. The control renders fine in run time, but for some reason, it does...
1
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls...
5
by: Nita Raju | last post by:
Hi, I have to validate a textbox for date without using the validation controls. So i had to use IsDate(). It's not working properly when i give "11//2004". When i enter the above date it...
7
by: I am Sam | last post by:
I have a DataGrid that is passing information to a stored procedure properly but the parameters aren't being casted properly. I was woundering if anyone can tell me how I should properly cast the...
0
by: nicomp | last post by:
When I create a web form in VS 2005 I have a problem. I created a MasterPage with a ContentPlaceHolder object on it. Then I created a detail page that refrenced the Master Page. When I drag...
2
by: Michael D. Reed | last post by:
I am using ClickOnce to distribute a program. It works well except for one detail. When a new version is installed, the program does not initialize properly immediately after the update. The...
6
by: Richard Hollenbeck | last post by:
Thanks to everybody who has helped me to get this thing finally working (somewhat). I got the field names to properly display in the PageHeaderSection, so I won't post the code from that. Now I'm...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.