CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/31/2007 11:30:16 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
Kannandesikan
Asp.Net User
content place holder12/31/2007 11:30:16 AM

0/0

how to resize widith and hight of content placeholder

i have created the masterpage and place the contenct placeholder but i wants increase the width and height of content placeholder.

 

Regards

Kannan.D


Regards,
Kannandesikan
sachin_07
Asp.Net User
Re: content place holder12/31/2007 12:19:25 PM

0/0

Hey Kannan,

Have a look at sample , it is what you want. 

<table cellspacing="1" cellpadding="0" width="250px" height="100px">

<tr><td>

<asp:ContentPlaceHolder runat="server" ID="_mainContent" />

</td></tr>

</table>

 

Hope this helps...

"Mark as Answer" if it helps you.
aadreja
Asp.Net User
Re: content place holder12/31/2007 12:43:20 PM

0/0

you cannot directly assign width to Content placeholder, use javascript instead.

Content place holder when rendered to HTML becomes <DIV>

try this code

Page.RegisterStartupScript("setContentSize","<script language=javascript>document.getElementById('" + cphName.ClientID + "').style.width=500; </script>");

Or if using AJAX

ScriptManager.RegisterStartupScript(this, typeof(string), "setContentSize", "document.getElementById('" + cphName.ClientID + "').style.width=500;", true);

hope it helps.


Thanks,
Ritesh

---------------------------------------------
Please do not forget to mark as Answer if my reply is helpful.
Amanda Wang - M
Asp.Net User
Re: content place holder1/2/2008 2:57:30 AM

0/0

Hi,

Kannandesikan:
how to resize widith and hight of content placeholder

You also can use a div control to wrap the contentplaceholder, you can try to set the div's hight change the contentplaceholder's height.

For example:

<div style="height:500px">
                    <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
                        Content pages.</asp:contentplaceholder></div>

hope it helps.

Happy new year!


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
ovaisgeo
Asp.Net User
Re: content place holder1/2/2008 7:42:38 AM

0/0

hi,

<Div style="Height:100%;Width:100%;">

<Contentplaceholder id="contentplaceholder1" runat="server" />

</Div>

Autometic resize ur contentplaceholder i hope u get an idea

 

Muhammad Ovais
Web Developer 

 

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Office 2007 Bible: With Website Access Authors: John Walkenbach, Faithe Wempen, Herb Tyson, Cary N. Prague, Michael R. Groh, Peter G. Aitken, Michael R. Irwin, Gavin Powell, Lisa A. Bucki, Pages: 1224, Published: 2007
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Mueller, Pages: 822, Published: 2005
PowerPoint 2007 Bible Authors: Faithe Wempen, Pages: 801, Published: 2007
Microsoft Sharepoint: Building Office 2007 Solutions in C# 2005 Authors: Scot Hillier, Pages: 513, Published: 2007
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Foundation PHP for Dreamweaver 8 Authors: David Powers, Pages: 510, Published: 2005
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007

Web:
ContentPlaceHolder Class (System.Web.UI.WebControls) Minimal)> _ Public Class ContentPlaceHolder _ Inherits Control _ Implements ... public class ContentPlaceHolder extends Control implements INamingContainer ...
Resize Content Place Holder in ASP.NET 2.0? different attempts, I am unable to resize a content place holder in the master page... Can anyone clue me in? It seems that the "resize grip ...
Content place holder FAQs and The Minimal Master Page minimal ... Why would you then take out a content placeholder from a master page if it throws ... You can either manually create all of the content place holders I've ...
What are content placeholder controls, content controls, and ... Feb 7, 2008 ... Content placeholder controls indicate regions of replaceable content on the master page. They appear in Code view as ...
Visual Studio .NET Arranging the Content Place Holder Jan 2, 2007 ... I placed a content place holder in a master page. I am unable to alter the size of the content place holder. Now when i am designing the web ...
Resize Content Place Holder - ASP.NET Forums I am designing a master page and have the need to resize the content place holder. I have tried using the handles, but this dont work. ...
Content Place Holder Question - bytes The placeholder isn't really a visible control, its just a kind of "Hat hook" onto which you place your real content (html and / or other.
ContentPlaceHolder Class (System.Web.UI.WebControls) Public Class ContentPlaceHolder Inherits Control Implements INamingContainer ... public ref class ContentPlaceHolder : public Control, INamingContainer ...
Size of content place holder - ASP.NET Forums Is it possible to change the size of the content place holder. I want to content place holder to use the full height of the page (to the ...
Content Place Holder Question Content Place Holder move down. I want it to say, like a "good dog." Ha. This is more a CSS issue again? Thanks! ...

Videos:
Associated Content Presents - making a napkin ring and place ... Associated Content Presents - making a napkin ring and place holder set.
Introduction to ASP.NET Master Page ASP.NET Master page is a nice concept, watch this video to understand how to use asp.net master page in your website
WorcesterScene.com Elevator Music Place Holder This serves no purpose but to act as a placeholder for when we don't have up to date content.
Your Face, 100% FC Expert Guitar Hero World Tour Your Face by Pepper. Pretty cool song. Strikes a familiar chord from my "youth." Good stuff. Currently the top place holder for all three ...
Medium shot incense burning in holder by window / woman in ... ClipID: 655-5 To license this clip please go to www.gettyimages.com/film and search using the clip number identified. You can quickly find similar ...
Eric Britton on the New Mobility Advisory/Briefs Paris: 23 August 2006: This is a draft introduction to some of the video content of the about to be launched New Mobility Advisory/Briefs ...
Starlight III Written in 1977. This current arrangement was formatted in 2000 and will remain on Youtube as a place holder. All my songs including an ...
Eric Britton on the New Mobility Advisory/Briefs Paris: 23 August 2006: This is a draft introduction to some of the video content of the about to be launched New Mobility Advisory/Briefs ...
PowerPoint: Basics Episode 1 (of an 18-part series). This Nortel LearniT tutorial reviews the basics of PowerPoint and gets you started using it right away.
Dance Dance A Hannah dance video I Do not own Hannah montana Copyright owner: UMG Content claimed: all of the audio content Policy: Allow this ...




Search This Site:










tree view

set numeric textbox value in javascript

change the menu button color after clicked, and stay there until other button be clicked

session in master page

accessing pictures in themes

menu problem in firefox

variables....

creating absolute reference to .js file in master page

contentplaceholder problems

designating media type in css with themes

menucontrol - view only some items

treeview collapse accessibility problems

allow user to choose a masterpage - how to?

setting cookie from master page for ascx?

meta tags

how to display different title in one master page

master page and menu control - menu renders improperly - please help me !!

treeview - how do i keep the state of a tree-view the same

how to access js files from a master page

save/load general preferences/properties

tree view behaviour

programmatically setting the selected node in sitemapdatasource

who includes who?

static menu item hover styles disappear when navigating its dynamic menu

changing path to web.sitemap file

treeview - synchronizing changes to datasource

usinng a second menu control to display childitems permanently

need helpin asp.net 2.0 (master page)

master page and content page format

can i use 2 sitemap in a page?

  Privacy | Contact Us
All Times Are GMT