.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Page Layout and Master Page

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :SharePoint
I am creating a portal for the company, I am having few issues related to the page laout, I hope someone would help me provide some clues 1. I have some sites with no left menu but it needs 3 column lay out 2. some sub sites have menu on the left but it needs 3 columns + the menu I created custom master from a v4.master, created page layouts based on the above structure. I am not able tailor them as per the needs Can some one point me in the right direction Thank you.. Neel

View Complete Post

More Related Resource Links

Master page in IE does'nt have the same layout as Chrome.

Hi all I'm having some dificulty in having the layout in IE same as in Chrome. I'm using a table, and in the Cell that has the menu it displays heigher in IE, but It is just perfect in Chrome. also the Navigation bar is more to the right in Chrome than in IE. Thank you This is the CSS used . html,body{ margin:0; padding:0; height:100%; border:none; background-color:Red; } /*--------------------------------Table-----------------------------------------------*/ .Table {position:absolute; margin: 1% 2% 3% 2%; width: 93%; height: 90%; background-color: #C0C0C0; z-index: 1; left: 22px; top: 22px;} /*------------------------------End Table----------------------------------------------*/ /*-------------------------------Logo-----------------------------------------------*/ #td1-logo {width:250em; height:4em; margin-left:2em;} /*-----------------------------End Logo---------------------------------------------*/ /*-------------------------------menu ----------------------------------------------------*/ #td1-menu {background-color:Lime; width:30em; height:20%;} ul { width:32em;margin:15px 5em 0 0em;height:4em;border-style:groove; border-color:Red;} ul li{float:left;width:8em;

Master Page and table layout

Hi, i am in the process to learn create master page using HTML table layout.I find out many resources online that use table to design their master page layout.I have 1 thing that i do not undestand:all of them using heigh= n pixel to control their footer, header, content  and navigation menu.My concern is that by doing so, the master page is fixed to only particular resolution only.In future there might be higher resolution available, the master page design need to be changed from time to time which is considered not so good programmer.OR in future, the when site need to have something like "Best view in resolution 1024 x 768", somethign like that...Is there any other way not to do so? Are they doing their master page correctly?

SP 2007 - Master.page layout

I have been searching for a solution to a clients request.  I need master page with: 1. 100% width header (center aligned)   2. 960px width main content area (center aligned) 3. 100% width footer (center aligned)   Can I add a <div> around the main content  like so:<div id="wrapper">CONTENT</div> #wrapper { margin:auto; width: 960px; }  

Referencing a ghosted master page in unghosted page layout

Hello All, I am developing a publishing portal in MOSS 2007 environment. I am employing wspbuilder to deploy my master pages, page layouts and site contents in the publishing site. I would like to know whether referencing a ghosted master page(residing in the 12 hive) in an unghosted page layout(residing in the content database) would be efficient. I read in some articles that fetching the pages from file system increases the throughput when compared to that of hitting the content database. Is it advisory to do it this way? Any insights on this would be of great useRegards, Raghuraman.V CALAMITY IS THE TOUCHSTONE OF A BRAVE MIND

Error: There are no page layout files available in the master page library of the top-level site.

I exported one of the subsite using stsadm and imported into a new site collection, I could access the new site collection but whenever I try to create a new page in my new site collection I get the following error.

There are no page layout files available in the master page library of the top-level site. Add one or more page layouts to this library before you create a page or set page properties.

Please help. Thanks.

how to provision Custom page layout and master page for subsite



I want to display the following page when  subsite of type  Custom site defination is created



Module Name="Brand" Url="

What the best way to achieve this layout - nested master page or iframes


Hi Guys

Im developing an admin section for a cms tool and in previous tools i used  a master page, which then had a page called verified.aspx. this contained a menu control and then dependant on which menu item they selected loaded a user control into a multiview control

This works fine accept for some small annoying post back issues (not refreshing data and also the time taken to load the large amount of controls)

For this solution i was looking to make it as quick and light weight as possible

I have a master page with 2 content placeholders. Im my verified page (which uses the master), i have a nav menu on the left. Dependant on the item selected fro the nav menu on the left, id like to poplute the content placeholders content with an aspx page (which contains a user control) or just an apsx page

ive seen a couple of articles suggesting iframe, and a couple suggesting nested master pages but i dont believe i can get this to work with nester masters, if somone has some code  and an exmaple of how to achieve this i would be very grateful

Thanks in advance for any help and support


Unique content within master page based on conditions met


 Hi all-

I would like to present users with unique content based on certain conditions being met as they land on the home page (default.aspx).  The condition logic will be in the VB code behind Page Load event. The content will go in a content placeholder as specificed from the master page. 

However, the content change wouldn't be something small (ie making a panel or label visible or not) but rather it will be different HTML,  Divs and databound gridview content.  The HTML content will be stored in the database.

Can someone point me in the right direction for best practices on how to accomplish this?


Passing Linq Statement between master and content page


I usually work with windows forms, and am just starting to work with ASP.Net, so appologies if this is a dumb question!

I have a master page which has a search button on it. The results of this are built up using a Linq statement and if there are any results, I want to display the results in a contents page.

On the masterpage, I have the following code:

Private _res

    Public Overridable ReadOnly Property SearchRes()
            Return _res
        End Get
    End Property

 Private Sub DoSearch()
   'some code to get a linq result

    If res.Any Then
            _res = res
            Server.Transfer("SearchResults.aspx", True)
            'no results
            LabelNoRes.Visible = True
        End If
 End Sub

On the SearchResults.aspx page I have this code.

Dim m As pxSite = CType(Page.Master, MasterPage)
        If m.SearchRes IsNot Nothing Then
            Label1.Text = "Results found = " & m.SearchRes.Count
        End If

m.searchRes is always nothing. 

What am I doing wrong here?


Re-positioning an HTML container with javascript onresize with a Master page.


I have an HTML <div> container that I float to the right of a gridview.  When the browser window is maximized, it looks fine.  When minimized, the gridview positions below the floating container and most of the data is pushed off the bottom of the browser - you have to scroll down to see it.

If I position the floating container above the gridview it looks fine in a minimized window, but looks real bad when maximized.

What I want to do is use a javascript: onresize event to re-position the floating container up or down depending on the window.inner.width AND do it with a Master/Content page structure AND do it for only the one page where needed.

I can capture the onresize event and display the window dimensions but haven't figured-out how to do it with a Content page that still uses the Master page.  I think I'm having a very "thick" week...

- Tinker


Not getting multiple composite controls on master page


I have created two composite controls in the same assembly and registered that assembly in a master page using <%@ Register tag.

When I try to use these controls using the registered tag prefix I am getting only one control along with the tagprefix .

How to get all the composite controls present in the registered assembly?

Master Pages: Master Your Site Design with Visual Inheritance and Page Templates


Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.

Fritz Onion

MSDN Magazine June 2004

Dynamic Checkboxlist exception when adding to Panel when using Master Page


In essence, I am creating Dynamic Checkboxlist controls and adding them to a Panel.  It works well when I do not have a Master Page configure to this webpage. Once I have a masterpage congifured.. I get a "Object Reference not set to instance of object" error on the Panel_Control.Controls.Add(Checkboxlistnew) line:

protected void Page_PreInit(object sender, EventArgs e)
        XML OXML = new XML();
        alistChkBoxLabels = OXML.XMLTransform("C:\\Documents and Settings\..\\Config_new.xml", "config_options/check_box/applications/app/@name");
        int count = 1;
        alistCheckisFacility = new ArrayList();
        alIDTracker = new ArrayList();
        while (count <= alistChkBoxLabels.Count)

            Checkboxlistnew = new CheckBoxList();
            Checkboxlistnew.ID = count.ToString();
            Checkboxlistnew.Items.Add(new ListItem(alistChkBoxLabels[count - 1].ToString(), alistChkBoxLabels[count - 1].ToString()));

            String sAppName = alistChkBoxLabels[count - 1].ToString().Trim();

            alistCheckisFacility = OXML.XMLTransform("C:\\Documents and Settings\\Administrator\\My Documents\\Visual Studio 2005\\WebSites\\User_Trial\\Config_new

Button click in master page use in other pages I have to click twice. Why?


In my masterpage I have a menu with buttons. I want the buttons to do something after click. It works but I have to click twice on the button, why? What do I have to do to just to click once?

Panels messing up page layout



On a few different pages in my web app I have a scrollable panel that contains a gridview. When there is nothing in the panel display as I want it to, however when the grid view is populated with data it stretches the panel across the page which looks awful, it means the panel is partially stretched across the window but is still scrollable

Anyone know why this might be happening?



Is master page a best alternative for Frame Sets ??


My webpage has one banner with a logo, a vertical menu bar on the left side of the page and a footer . I have 5 other pages which should get loaded when the user select them from the menu bar. what my concern is actually the banner,  menu bar  and the footer should not change when the requested page loads. This definitely can be handled by sets. But I want to know whether there are any other alternatives for frame sets or could master page be helpful for this purpose ????? 

Any help would be appreciative .

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend