<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Scrollbars for ContentPlace Holder</title><link>http://forums.asp.net/thread/2291558.aspx</link><pubDate>Fri, 11 Apr 2008 11:18:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2291558</guid><dc:creator>kumarm_ttu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2291558.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2291558</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Dont&amp;nbsp;change contentplaceholder. put a division in content page. automatically scrollbars will come whenever u r content increases.&lt;/p&gt;&lt;font color="#0000ff" size="1"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;asp&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;:&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;Content&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="1"&gt;ID&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;=&amp;quot;contentOne&amp;quot;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="1"&gt;runat&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="1"&gt;ContentPlaceHolderID&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;=&amp;quot;cphMainContent&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;div&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="1"&gt;style&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;=&amp;quot;padding-top:50px;padding-left:300px;padding-right:300px;font-size:11px; &amp;quot;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;div&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt; 
&lt;p&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;asp&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;:&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;Content&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&amp;gt;&lt;/font&gt;&lt;font size="1"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="1"&gt;i hope this will help you.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="1"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Scrollbars for ContentPlace Holder</title><link>http://forums.asp.net/thread/1877160.aspx</link><pubDate>Sun, 26 Aug 2007 13:00:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1877160</guid><dc:creator>machta</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1877160.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1877160</wfw:commentRss><description>&lt;p&gt;If you want to solve this problem you can do it in two different ways:&lt;/p&gt;
&lt;p&gt;Firstly you can use iframe instead of the content place holder, but it&amp;#39;s not good solution for asp.net that provides so many web controls - it&amp;#39;s solution for begginers&amp;nbsp;who use html.( I have used this way until I started to learn asp.net and started to&amp;nbsp;use master pages.)&lt;/p&gt;
&lt;p&gt;The better way how to make the scrollbar is to put the &amp;quot;ContentPlaceHolder&amp;quot; into web control named &amp;quot;Panel&amp;quot;. Then you can choose where you want to have the scrollbar.&amp;nbsp;Don&amp;#39;t forget to set width or height of&amp;nbsp;the panel!&amp;nbsp;Use it&amp;nbsp;at the same position in code as &amp;quot;div&amp;quot; tag in the previous post.&lt;/p&gt;
&lt;p&gt;Please write here if you&amp;#39;ll choose one of my solutions. I think that the second one is better than klaus&amp;#39;s :-) But it&amp;#39;s just my opinion ...&lt;/p&gt;</description></item><item><title>Re: Scrollbars for ContentPlace Holder</title><link>http://forums.asp.net/thread/1875639.aspx</link><pubDate>Fri, 24 Aug 2007 15:37:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1875639</guid><dc:creator>klaus_b</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1875639.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1875639</wfw:commentRss><description>&lt;p&gt;Here is an example the works as expected on my machine.&lt;/p&gt;
&lt;p&gt;the master page&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;div&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;MainContent&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; class=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;MainContent&amp;quot;&lt;/span&gt;&amp;gt;
	&amp;lt;&lt;span class="tag"&gt;asp:ContentPlaceHolder&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;ContentPlaceHolder1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&amp;gt;
	&amp;lt;/&lt;span class="tag"&gt;asp:ContentPlaceHolder&lt;/span&gt;&amp;gt;
&amp;lt;/&lt;span class="tag"&gt;div&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;and the css class&lt;/p&gt;&lt;pre class="coloredcode"&gt;.&lt;span class="sel"&gt;MainContent&lt;/span&gt;
{
	position:&lt;span class="val"&gt; relative&lt;/span&gt;;
	top:&lt;span class="val"&gt; &lt;span class="unit"&gt;0&lt;/span&gt;px&lt;/span&gt;;
	left:&lt;span class="val"&gt; &lt;span class="unit"&gt;0&lt;/span&gt;px&lt;/span&gt;;
	width:&lt;span class="val"&gt; &lt;span class="unit"&gt;100&lt;/span&gt;%&lt;/span&gt;;
	overflow:&lt;span class="val"&gt; auto&lt;/span&gt;;
	cursor:&lt;span class="val"&gt; default&lt;/span&gt;;
}
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;Hope that could help you&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Scrollbars for ContentPlace Holder</title><link>http://forums.asp.net/thread/1872565.aspx</link><pubDate>Thu, 23 Aug 2007 06:48:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1872565</guid><dc:creator>klaus_b</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1872565.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1872565</wfw:commentRss><description>&lt;p&gt;Hi sivavenugopal,&lt;/p&gt;
&lt;p&gt;AFAIK there is no way to add scrollbars to the contentplaceholder. But maybe it helps to put the comtentplaceholder inside a div. The div must reside&amp;nbsp;in the masterpage.&amp;nbsp;Give the div style a fixed width an hight. Add the overflow&amp;nbsp;scrollbar attribute to divs vertical axis. Now it should works as expected.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Scrollbars for ContentPlace Holder</title><link>http://forums.asp.net/thread/1872435.aspx</link><pubDate>Thu, 23 Aug 2007 04:54:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1872435</guid><dc:creator>sivavenugopal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1872435.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1872435</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My problem is that I cannot work out how to make the masterpage Content Section&amp;#39;s &amp;#39;contentplaceholder&amp;#39; scrollable.&amp;nbsp; In addition to this if I change the screen resolution or view in different browers everything gets stretched and/or misaligned. &lt;/p&gt;
&lt;p&gt;Basically I want the left ad panels, banner and footer sections to remain static across the whole website and only the content section to change as each new page is loaded into it. However, if the content page has a lot of text/images etc I want that section to be scrollable, and only scrollable where there is an overflow on the content sections height. At the moment the content panel grows and pushes my footer off the bottom of the page.&lt;/p&gt;
&lt;p&gt;I am calling this page using a javascript (window.open()) method with scrollbars=no. Because i don&amp;#39;t want any scrollbars to entire page. I need scrollbars only to the ContentPlaceholder.&lt;/p&gt;
&lt;p&gt;I used the DIV tag but it is also not working. Please help me in this regard.&lt;/p&gt;</description></item></channel></rss>