master-pages

Sharepoint : Access denied when editing a page (because of page layout) or list item

I'm logged in as the System Account, so it's probably not a "real access denied"! What I've done : - A custom master page - A custom page layout from a custom content type (with custom fields) If I add a custom field (aka "content field" in the tools in SPD) in my page layout, I get an access denied when I try to edit a page that comes ...

Sharepoint : Access denied when trying to delete a page layout or master page

I'm getting a : "This item cannot be deleted because it is still referenced by other pages." When I try to delete a master page or a page layout. All the pages that were made with those are now gone. ...

When page uses a master page, then controls created during design time are initialized …?

Hi http://www.allinterview.com/showanswers/73327.html a) If I understand the above article correctly, then when a page has a master page associated with it, then all controls ( those declared in master page and those declared in content page ) created during design time are assigned declarative values only during an Init event? b) A...

WSS 3.0 Site Definition breaks when including MasterUrl in onet.xml

I have created a simple site definition for WSS 3.0 which uses a feature, this feature provisions a master page into the masterpage gallery. This works absolutely fine, and once I've created a site from the definition I can go into the masterpage gallery and view my provisioned file. If, however, I set the MasterUrl in my Configuration...

<Title> tag being split accross multiple lines when genereated from MasterPage

I have created a website in VS 2008 (C#) that is using masterpages. In the ASPX pages that are based off the masterpage I'm using the @ PAGE title directive to set the title of the genereated HTML page. When I run the page on my development system the title displays correctly i nthe browser. However when I view the source code in the b...

Highlighting the selected jquery tab using asp.net Master page.

Hi everyone, I am using jquery tabs(First,Second,Third) in multiple asp.net pages (First.aspx, second.aspx,Third.aspx) in my asp.net website and in each page i am writing the ul,li code. For example in the First.aspx page I am writing the following code inside the 'ul' tag <li class="current"><a href="#First">First tab</a></li> <li><a ...

ASP.NET nested masters pages with CompilationMode="Never", a recepie for disaster? Bug in ASP.NET?

While working on a quite big web application project, I decided that it could gain a little bit of fresh air by marking some of the pages and controls with the CompilationMode="Never" @Page attribute. So far so good, working as expected and then it happened. A corner case scenario that I am going to explain behaved unexpectedly to put it...

When are controls initialized with their design time values?

Hi a) Am I right in assuming that only after controls on Master page are merged into the control tree for the Page, can controls ( both those in Master page and in a content Page ) be initialized with their declarative values ( values set during design time )? b) If my above assumption is correct, then these controls cannot be init...

Is there a way to have OutputCache ignore the master page in asp.net mvc?

I have an action that returns a view with a master page with a logon user control at the top. When I set outputcache, it caches the entire output including the current user, so everybody would see whoever was the last person to hit the page to refresh the cache as the current user. Is there a way to prevent the master page from being i...

Duplicate title tags using ASP.NET MasterPage

I need to set the title of a page dynamically, and so I use code similar to the following: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="~/about.aspx.cs" Inherits="Default" %> <%@ Register Assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %> <%@ MasterType...

ASP.Net MVC - Referencing stylesheets in the master page

I have a master page that is in /Views/Shared. The master page references a stylesheet in the /Content folder. Everything works fine if I reference the stylesheet using "../../Content/style.css". However, my web application is not in the root folder in our production environment, so the relative path doesn't work. I have tried "<%=Re...

ASP.NET MVC Master Page Data

Hi there, The more I use ASP.NET MVC, the more I love it. However, in the case of showing model data on master pages there seems several ways of doing it. I am unsure as to the best solution. My example would be a commerce site where I want to output a list of product categories on every page and also show the status of the visitors ca...

How to access an enum in master page.

Can we access an enum which has been defined in the master page. I read about the master page on http://jai-on-asp.blogspot.com/2009/12/master-pages-in-aspnet-35.html ...

Dynamically Create ASP.NET Content Pages

Is it possible with ASP.NET Master Pages to create content pages dynamically? That is, I know we can create content dynamically, but the content pages themselves, can those be created programmatically? I want to give my users the ability to define new content pages (i.e. Categories: Sofas, Tables, Lamps, and add/delete as they see fit...

How can we use validation controls in a master page in asp.net

How can we use validation controls in a master page. The master page has some server controls and some html controls. Now if we place the validations controls on master page would it effect the child page as well. I read about validation controls from http://jai-on-asp.blogspot.com/2009/12/validation-controls-in-aspnet.html and master pa...

Is there something like master page in desktop aplications?

Hi everyone. Can I have master form that will contain windows forms? Or even windows control? Thanks a lot. ...

Removing master layout from view (MVC2)

Hi, if i need remove master layout from my view, how can i do it in MVC2? i tried put code in my view that was shown in documentation http://sparkviewengine.com/documentation/master-layouts: , but it still bring my Application.spark layout :-/ any ideas why? ...

ASP.NET Master page Page_Load Override

I have a Master page for my site that is used for styling the rest of the site and doing user authentication. This works fine except that I have one page that I would like to retain the styling from the master but not do the authentication since this is the page that tells the user that they aren't authenticated. How could I override the...

Only cache MasterPage in ASP.NET MVC

I have a MasterPage that has ViewData passed to it. I would really like to cache only the MasterPage for performance reasons. But I do not want to cache the actual page that is loading with the MasterPage. I believe this can be done in web forms by adding code in to the Page_Load event. Does anyone know of a similar technique using ASP....

how to display the whole page in the center of the browser

i have three divs outside my contentplaceholder masterpage code: <div id="content-outer" class="clear"> <div id="content-wrapper"> <div id="content"> <asp:ContentPlaceHolder ID = "ContentPlaceHolder1" runat="server" > </asp:ContentPlaceHolder> </div> </div> </div> the width of content outer div is 14...