Connecting Tech Pros Worldwide Forums | Help | Site Map

Content Place Holder Width

Rene
Guest
 
Posts: n/a
#1: Nov 17 '06
I have a master page where I would like to be able to resize the width of
the ContentPlaceHolder.

Once the Content Place Holder control has the with that I want, I don't want
it to change even if the browser is resized.

Is it possible to accomplish this?



Peter Bromberg [C# MVP]
Guest
 
Posts: n/a
#2: Nov 17 '06

re: Content Place Holder Width


As far as I know, ContentPlaceHolder is just that - a placeholder for what
you decide to put in it. You determine the size via the CSS properties of the
containing DIV or PANEL that you eventually attach to it.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Rene" wrote:
Quote:
I have a master page where I would like to be able to resize the width of
the ContentPlaceHolder.
>
Once the Content Place Holder control has the with that I want, I don't want
it to change even if the browser is resized.
>
Is it possible to accomplish this?
>
>
>
Rene
Guest
 
Posts: n/a
#3: Nov 17 '06

re: Content Place Holder Width


Thanks Peter,

I started doing what you suggested and its working nicely, the only thing
that I don't like is that I have to basically use a Panel or Div on every
single page that uses the master page, this seems to defeat the purpose of
the master page.

If I was able to resize and set some properties (alignment, back color etc)
on the ContentPlaceHolder control, then I wouldn't need to add a Panel or
Div on each of the page that uses the master page, I could simply start
inserting controls straight up on the page... Oh well, no big deal.

I am still new to ASP so maybe I can do what I want using CSS like you
suggested and don't have to worry about setting Div or Panel properties ....
time to research some more.

Thanks.



"Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.comwrote in message
news:647E7A39-7FBA-42C9-A987-C2A9D562CA81@microsoft.com...
Quote:
As far as I know, ContentPlaceHolder is just that - a placeholder for what
you decide to put in it. You determine the size via the CSS properties of
the
containing DIV or PANEL that you eventually attach to it.
Peter
>
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
>
>
>
>
"Rene" wrote:
>
Quote:
>I have a master page where I would like to be able to resize the width of
>the ContentPlaceHolder.
>>
>Once the Content Place Holder control has the with that I want, I don't
>want
>it to change even if the browser is resized.
>>
>Is it possible to accomplish this?
>>
>>
>>

Peter Bromberg [C# MVP]
Guest
 
Posts: n/a
#4: Nov 17 '06

re: Content Place Holder Width


Can't you put a default Panel or div with the properties you want into the
MasterPage, and have the Content control inside it, for the actual page to
"fill in"?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Rene" wrote:
Quote:
Thanks Peter,
>
I started doing what you suggested and its working nicely, the only thing
that I don't like is that I have to basically use a Panel or Div on every
single page that uses the master page, this seems to defeat the purpose of
the master page.
>
If I was able to resize and set some properties (alignment, back color etc)
on the ContentPlaceHolder control, then I wouldn't need to add a Panel or
Div on each of the page that uses the master page, I could simply start
inserting controls straight up on the page... Oh well, no big deal.
>
I am still new to ASP so maybe I can do what I want using CSS like you
suggested and don't have to worry about setting Div or Panel properties ....
time to research some more.
>
Thanks.
>
>
>
"Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.comwrote in message
news:647E7A39-7FBA-42C9-A987-C2A9D562CA81@microsoft.com...
Quote:
As far as I know, ContentPlaceHolder is just that - a placeholder for what
you decide to put in it. You determine the size via the CSS properties of
the
containing DIV or PANEL that you eventually attach to it.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Rene" wrote:
Quote:
I have a master page where I would like to be able to resize the width of
the ContentPlaceHolder.
>
Once the Content Place Holder control has the with that I want, I don't
want
it to change even if the browser is resized.
>
Is it possible to accomplish this?
>
>
>
>
>
>
Rene
Guest
 
Posts: n/a
#5: Nov 17 '06

re: Content Place Holder Width


Good idea but it didn't appear to work, for now its ok, I just want to get
the website done and then tweak it as I learn more about ASP.



Thanks for the help.



"Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.comwrote in message
news:FAB56D80-D422-49C0-BB8E-9F2C9EE84E90@microsoft.com...
Quote:
Can't you put a default Panel or div with the properties you want into the
MasterPage, and have the Content control inside it, for the actual page to
"fill in"?
Peter
>
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
>
>
>
>
"Rene" wrote:
>
Quote:
>Thanks Peter,
>>
>I started doing what you suggested and its working nicely, the only thing
>that I don't like is that I have to basically use a Panel or Div on every
>single page that uses the master page, this seems to defeat the purpose
>of
>the master page.
>>
>If I was able to resize and set some properties (alignment, back color
>etc)
>on the ContentPlaceHolder control, then I wouldn't need to add a Panel or
>Div on each of the page that uses the master page, I could simply start
>inserting controls straight up on the page... Oh well, no big deal.
>>
>I am still new to ASP so maybe I can do what I want using CSS like you
>suggested and don't have to worry about setting Div or Panel properties
>....
>time to research some more.
>>
>Thanks.
>>
>>
>>
>"Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.comwrote in
>message
>news:647E7A39-7FBA-42C9-A987-C2A9D562CA81@microsoft.com...
Quote:
As far as I know, ContentPlaceHolder is just that - a placeholder for
what
you decide to put in it. You determine the size via the CSS properties
of
the
containing DIV or PANEL that you eventually attach to it.
Peter
>
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
>
>
>
>
"Rene" wrote:
>
>I have a master page where I would like to be able to resize the width
>of
>the ContentPlaceHolder.
>>
>Once the Content Place Holder control has the with that I want, I
>don't
>want
>it to change even if the browser is resized.
>>
>Is it possible to accomplish this?
>>
>>
>>
>>
>>
>>

Closed Thread