ContentPlaceHolder Problem : DOTNET

This is a discussion on ContentPlaceHolder Problem within the DOTNET forums in Framework and Interface Programming category; Hi, I'm trying to use the Master Page/ContentPlaceHolder structure for the first time. I created a master page with a banner and a table with 2 rows (body and footer) with the top (body) row split into 3 columns, the first for a navigation treeview, the second as a separator and the third to serve as my content cell, while the bottom (footer) row spans all 3 columns. When trying to place a ContentPlaceHolder control in the conent cell, the control is created with a size considerably smaller than the size of the cell. Selecting the control yields 2 handles ...

Go Back   ObjectMix Forum > Framework and Interface Programming > DOTNET

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-31-2007, 01:06 PM
=?Utf-8?B?WlpfU2NhcmFi?=
Guest
 
Default ContentPlaceHolder Problem

Hi,

I'm trying to use the Master Page/ContentPlaceHolder structure for the first
time. I created a master page with a banner and a table with 2 rows (body and
footer) with the top (body) row split into 3 columns, the first for a
navigation treeview, the second as a separator and the third to serve as my
content cell, while the bottom (footer) row spans all 3 columns.

When trying to place a ContentPlaceHolder control in the conent cell, the
control is created with a size considerably smaller than the size of the
cell. Selecting the control yields 2 handles only (middle of right and bottom
sides) rather than the customary 8 (at each corner and middle of each side).
I cannot move or resize the control at all in the IDE, and cannot find any
properties to set in order to programmatically set the position and size of
the ContentPlaceHolder control.

Is there a bug in VS 2005 with this control or am I missing something? I
cannot find any posted message on this issue so I must be doing something
wrong. Can anybody please shed some light on this?

Thanks
Reply With Quote
  #2  
Old 08-31-2007, 01:34 PM
=?Utf-8?B?QW5kcmVhcyBLcmF1cw==?=
Guest
 
Default RE: ContentPlaceHolder Problem

Hi,

could you maybe show us your code structure?

You don't have to set the size or anything else on a ContentPlaceHolder.
Just put it whereever you want on the MasterPage (between DIVs or TABLEs) and
fill it with content on .aspx Pages which are using the MasterPage.

hth,
Andreas
--
More on ASP.NET and Silverlight on my blog: http://www.andreas-kraus.net/blog


"ZZ_Scarab" wrote:

> Hi,
>
> I'm trying to use the Master Page/ContentPlaceHolder structure for the first
> time. I created a master page with a banner and a table with 2 rows (body and
> footer) with the top (body) row split into 3 columns, the first for a
> navigation treeview, the second as a separator and the third to serve as my
> content cell, while the bottom (footer) row spans all 3 columns.
>
> When trying to place a ContentPlaceHolder control in the conent cell, the
> control is created with a size considerably smaller than the size of the
> cell. Selecting the control yields 2 handles only (middle of right and bottom
> sides) rather than the customary 8 (at each corner and middle of each side).
> I cannot move or resize the control at all in the IDE, and cannot find any
> properties to set in order to programmatically set the position and size of
> the ContentPlaceHolder control.
>
> Is there a bug in VS 2005 with this control or am I missing something? I
> cannot find any posted message on this issue so I must be doing something
> wrong. Can anybody please shed some light on this?
>
> Thanks

Reply With Quote
  #3  
Old 09-07-2007, 05:36 PM
=?Utf-8?B?WlpfU2NhcmFi?=
Guest
 
Default RE: ContentPlaceHolder Problem

Thanks, Andreas. I was actually trying to convert a child page into a content
one but it was to large to fit. After I reduced its size so it would fit, I
managed to link it to the master page and when I open it in design mode, it
shows nicely fitting inside the master page. However, the ContentPlaceHolder
control itself still shows behind my content page's controls and has a
smaller size than the content page. I'm not sure that this poses a problem,
but will know soon when I try creating my next content page.

---------------------------------------------------------------------------------------------

"Andreas Kraus" wrote:

> Hi,
>
> could you maybe show us your code structure?
>
> You don't have to set the size or anything else on a ContentPlaceHolder.
> Just put it whereever you want on the MasterPage (between DIVs or TABLEs) and
> fill it with content on .aspx Pages which are using the MasterPage.
>
> hth,
> Andreas
> --
> More on ASP.NET and Silverlight on my blog: http://www.andreas-kraus.net/blog
>
>
> "ZZ_Scarab" wrote:
>
> > Hi,
> >
> > I'm trying to use the Master Page/ContentPlaceHolder structure for the first
> > time. I created a master page with a banner and a table with 2 rows (body and
> > footer) with the top (body) row split into 3 columns, the first for a
> > navigation treeview, the second as a separator and the third to serve as my
> > content cell, while the bottom (footer) row spans all 3 columns.
> >
> > When trying to place a ContentPlaceHolder control in the conent cell, the
> > control is created with a size considerably smaller than the size of the
> > cell. Selecting the control yields 2 handles only (middle of right and bottom
> > sides) rather than the customary 8 (at each corner and middle of each side).
> > I cannot move or resize the control at all in the IDE, and cannot find any
> > properties to set in order to programmatically set the position and size of
> > the ContentPlaceHolder control.
> >
> > Is there a bug in VS 2005 with this control or am I missing something? I
> > cannot find any posted message on this issue so I must be doing something
> > wrong. Can anybody please shed some light on this?
> >
> > Thanks

Reply With Quote
Reply


Thread Tools

Similar Threads

Thread Thread Starter Forum Replies Last Post
FCKEditor not working in contentplaceholder msch-prv@bluewin.ch DOTNET 0 12-02-2007 03:31 PM
ContentPlaceHolder Resizing with Dynamic TreeView Joseph Gruber DOTNET 1 11-04-2007 07:53 PM
Writing directly to ContentPlaceHolder Slawomir DOTNET 4 07-19-2007 02:12 PM
ContentPlaceHolder under a DIV tag - Visual Studio Design view? jobs DOTNET 4 07-17-2007 04:15 AM
Is it a know problem this problem? (an extension of Nearest-Neighbor Problem) Joe Zhang Graphics 4 10-24-2006 08:35 PM


All times are GMT -5. The time now is 08:55 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.