CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/23/2007 4:54:46 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 70 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
sivavenugopal
Asp.Net User
Scrollbars for ContentPlace Holder8/23/2007 4:54:46 AM

0/0

Hi All,

 My problem is that I cannot work out how to make the masterpage Content Section's 'contentplaceholder' scrollable.  In addition to this if I change the screen resolution or view in different browers everything gets stretched and/or misaligned.

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.

I am calling this page using a javascript (window.open()) method with scrollbars=no. Because i don't want any scrollbars to entire page. I need scrollbars only to the ContentPlaceholder.

I used the DIV tag but it is also not working. Please help me in this regard.

klaus_b
Asp.Net User
Re: Scrollbars for ContentPlace Holder8/23/2007 6:48:31 AM

0/0

Hi sivavenugopal,

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 in the masterpage. Give the div style a fixed width an hight. Add the overflow scrollbar attribute to divs vertical axis. Now it should works as expected.

 


Servus,
Klaus

I haven't the faintest idea, but great many therefrom.
klaus_b
Asp.Net User
Re: Scrollbars for ContentPlace Holder8/24/2007 3:37:40 PM

0/0

Here is an example the works as expected on my machine.

the master page

 

<div id="MainContent" runat="server" class="MainContent">
	<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
	</asp:ContentPlaceHolder>
</div>

 and the css class

.MainContent
{
	position: relative;
	top: 0px;
	left: 0px;
	width: 100%;
	overflow: auto;
	cursor: default;
}

 Hope that could help you

 


Servus,
Klaus

I haven't the faintest idea, but great many therefrom.
machta
Asp.Net User
Re: Scrollbars for ContentPlace Holder8/26/2007 1:00:38 PM

0/0

If you want to solve this problem you can do it in two different ways:

Firstly you can use iframe instead of the content place holder, but it's not good solution for asp.net that provides so many web controls - it's solution for begginers who use html.( I have used this way until I started to learn asp.net and started to use master pages.)

The better way how to make the scrollbar is to put the "ContentPlaceHolder" into web control named "Panel". Then you can choose where you want to have the scrollbar. Don't forget to set width or height of the panel! Use it at the same position in code as "div" tag in the previous post.

Please write here if you'll choose one of my solutions. I think that the second one is better than klaus's :-) But it's just my opinion ...


Hope that this post helped you. Don't forget to click "Mark as Answer" on the post that helped to solve your problem!
kumarm_ttu
Asp.Net User
Re: Scrollbars for ContentPlace Holder4/11/2008 11:18:30 AM

0/0

Hi

Dont change contentplaceholder. put a division in content page. automatically scrollbars will come whenever u r content increases.

<asp:Content ID ="contentOne" runat ="server" ContentPlaceHolderID ="cphMainContent">

<div style="padding-top:50px;padding-left:300px;padding-right:300px;font-size:11px; " >

</div>

</asp:Content>

i hope this will help you.

 


Thanks & Regards
Sanjay.
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Scrollbars for ContentPlace Holder - ASP.NET Forums AFAIK there is no way to add scrollbars to the contentplaceholder. But maybe it helps to put the comtentplaceholder inside a div. ...
MasterPage with Scrollable ContentPlaceHolder - ASP.NET Forums i hope if i am not mistaken you are trying to display scrollbars in contentplaceholder. here is a sample, hope this helps. ...
Scroll bars for ContentPlaceHolder? - .NET Forum Scroll bars for ContentPlaceHolder?. Get answers to your questions in our .NET Forum forum.
Re: Scrollbar ContentPlaceHolder I got the same situation and have resolve the problem by adding a SPAN ... HTML tag before the contentholder tag. ...
vstudio development Scrollbar ContentPlaceHolder 10/3/2005 3:06:01 AM Scrollbar ContentPlaceHolder. Hi you all, I'm am a newbie to generating ASPX pages with Visual Web Developer 2005. ...
ASP.Net 2.0 Masterpages scrollable ContentPlaceholder ... ...
screen and contentPlaceHolder absolute sizes in microsoft.public ... is in the contentPlaceHolder? 3. The last question brings up this one. If you can do #2 above, how do you add a scrollbar to the contentPlaceHolder to make ...
screen and contentPlaceHolder absolute sizes Aug 24, 2008 ... add a scrollbar to the contentPlaceHolder to make it scroll if there is too much content to physically fit on the screen without moving all ...
draggable panel inside a contentplaceholder - ASP.NET Forums Including the scrollbars for IE7 kickIn allowing me to drop it out the screen bounds & i to am placing the draggable panel in a asp:Content place holder. ...
Koders Code Search: ContentPlaceHolder.cs - C# ScrollBars.cs · SelectedDatesCollection.cs · SendMailErrorEventArgs.cs ... ContentPlaceholder.cs // // Authors: // Lluis Sanchez Gual ([email protected]) ...




Search This Site:










using common buttons....

scrolling by keyboard keys in masterpages

viewstate not saved on master page

menu server control

treeview not displaying default expand/collapse images

sitemap navigation and security

problems w/ treeview

_default is ambiguos

boundfield theming results in extra empty column

bug? trying to rename a label id which is contained in a masterpage file gives a 'the directory name is invalid' error

sitemap and menu control

how do you control the menu control?

masterpage and table ?

dynamic menus with querystings

asp:menu control & css... ie & firefox display differently. help!

how to edit css file with asp.net page.

can't add master pages to my project!

treeview : async depopulate a node when collapsed

hyperlink colors conflict with menu control

database driven themes

inlcuding a jscript file in a master page

sitemap question

treeview on filesystem, parent nodes text..

theme problem with text

hyperlink issue

treeview control - remote server location?

using treeview (converting from windows forms)

sitemapprovider and roles

treeview nodepopulate - executes twice?

using .browser files to taget a broswer with a specific masterpage?

  Privacy | Contact Us
All Times Are GMT