.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

Master Page -- Quick Launch Customization

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#



   I am trying to customize the Quick Launch in my MOSS 2007 installation.  I have been able to successfully get it so that subsites now inherit the quick launch from the parent site (thanks to this post: http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/33e31ec1-11d0-4d94-b27c-d1385690f172).  What I am trying to do now is have the current site's document libraries, subsites, etc.  Could someone please tell me how to do this?  I have tried simply just adjusting the settings under the navigation section of Site Settings but that doesn't show the current site's document libraries, subsites, etc. . . . only the parent's.  

  To be a little more specific, under the Site Settings > Navigation, there is a section entitled "Current Navigation", I'd like to be able to not only see the parent's navigation items but also the navigation items below the current site.  Is this possible?


Thank You In Advance,


View Complete Post

More Related Resource Links

Remove/Hide empty space of quick launch from web part page


I created a document library, whose type is "Web Part Pages". When I create a new web part page in this document library the quick launch is missing from the pages. There's a gap on the left side of the web part page for about 200px where the quick luanch would have been.

I don't necessarily want the quick launch to show up at this point. But I don't want the empty space in there either. I would prefer that the web part page covers the empty space on the left side. Can you please advise how to fix this? I had created a subsite before where I don't have this problem.

Let me know if it's not clear about what I mentioned above. Unfortunately I can't post an image here to show what I'm referring to.


Quick Launch customization


I would like to accomplish 2 things on the left navigation panel in SP 2010:  (I removed a post I inadvertantly posted to 2007 forum)

1.  Left panel navigation Headings to have no link (use them as labels to group the links I want to display).  Site Settings > Navigation requires that I insert a link.

2.  Left panel naviagion Headings and Links to be formatting differently similar to SP 2007.  Headings against left and Links to be indented and another color (or bulleted).

This happens automatically if I create a Team site.  However, I am creating a Publishing site.  When I do, formatting for menu items (both Headings and Links) change with the ".s4-ql ul.root > li > .menu-item" style.  Even when I remove ".s4-qlheader,.s4-qlheader:visited" and formatted that item differently.

If I turn UseSimpleRendering="true" in SharePoint:AspMenu id="V4QuickLaunchMenu" line of the Master Page, the Headings and Links are formatted differently (defaulting to Hyperlink and Visited Hyperlink formatting for the theme).  However any specific formatting in the CSS file for those menu items are ignored.

The Quick Launch item for the Wiki is no longer bringing up the Home.aspx page


I created a new Wiki Page Library a couple of days ago called "Team Wiki". After playing around with the wiki pages a bit. The default Quick Launch item for the wiki was called "Team Wiki" on the left navigation bar in the default theme. The link when I hover over the "Team Wiki" text points to ".../Team%20Wiki/" which it always has. However, when I click the link it takes me to the URL ".../Team%20Wiki/Forms/AllPages.aspx" instead of the URL ".../Team%20Wiki/Home.aspx" which it used to by default a couple of days ago. Is there any way for me to get my default Quick Launch item to point back to the URL ".../Team%20Wiki/Home.aspx"? The default Home.aspx page is still in the same location as the How%20To%20Use%20This%20Wiki%20Site.aspx page is.

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?


Launch CMD File From ASPX Page


My organization uses a CMD file to install updated files for a major enterprise application. Currently, we send out an email to users with a link to the file and instructions to run it, BUT inevitably users don't update their machines until their in field and try to start the app.


We're now liking the idea of using an ASPX page to prompt the users to run the updates and to capture the fact that the updates have been run. I realize that we can't capture the success or failure of the update. But we'd like to capture the user accessed the page.


Is it possible to embed into the markup for the page a link to the file on the local intranet that the users can click on to run the file?

The user accessing the page would capture that they did just that. We'd deal with wether or not the update was actually installed or if it failed later with them directly.

Dynamic page customization in WebForms



I am developing an ASP.NET Webforms application for job advertisements. The application is hosted on my own server and enables registrated users to publish job advertisements with the possibility to submit job applications directly from web. The application essentially consists of two parts: job advertisements and job applications sub-apps. 

The job advertisement application uses RESTful approach, implemented as ASP.NET routing and makes no use of different state variables (like viewstate). I provide custom layout of job advertisement webpage for every client using XML serialization of my internal JobOffer class and using XML ASP.NET control with custom XSLT transformation sheet plus CSS to render the custom design. It is all fine and works perfectly.

The second (job applications) part provides users with a custom webform, which is partically dependent upon the original advertisement (regarding the minimal education level, eligible citizenship or work permissions, licences etc.) and can be tweacked using custom CSS. There is, however, no possibility for custom layout of the elements on this page, which provides a multi-tabbed navigation for different parts of job application. Hence the question 1 (see below).

The application is not ready yet, but I intend to keep it hosted on my own server and provide just some ki

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?

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 .

DropDownMenu disapper in master page


Dear all,


I have master page and wen i use master page my drop down menu selection disapper in web forms...could anyone pls help me...am not so clear about z-index...








@ Master Language="VB" AutoEventWireup="false" CodeBehind="Default.master.vb" Inherits="E_Management._Default1" %>

Wiki page customization


I am using a wiki library. I added one multiline field to this library and one date column.

1. How can i control number of lines entered in the multiline text box? By specifying the no. of lines only displays small textbox it doesn't stop us entering more.
2. When the user goes for edit i wanted the date column in the top. How do i acheive this ?
Vijaykishan | http://v2attechhorizon.blogspot.com

Apply custom.master to "Site Settings" page?


I'm using a custom.master page, which is applied to almost all pages available to READ users.

However, I'd like to apply it to the Search, Site Settings, and View All Site Content pages.

I'm not sure where this would be applied.

Guidance much appreciated. Thanks!

Sharepoint 2007 - Wiki site - New Pages Not Inheriting Custom Master Page


I am working on a SP site (MOSS not WSS) which is heavily customised away from the OOTB layout. I need to create a Wiki site, which was going well - I've created a master page which displays the miniconsole (this was not visible with our customised layout), and made it the default master page for the site. This has been applied to the two standard pages that come with the Wiki site, however when a new page is created, it seems to inherit the default.master, rather than my custom master page - thus not showing the miniconsole.

When I have created a new page, I am able to use SharePoint Designer to attach my custom master page to it, which works perfectly, however this will not be a viable option going forward as end-users create their new wiki pages.

How can I get the new pages to inherit my master page when they are created?


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