master-pages

Word 2007 Master Pages

I'm using the Open XML SDK to work with Word 2007 templates, and the project continues to progress nicely. Now I would like to add consistent headers and footers to every document, very similar to an ASP.NET MasterPage. In particular, I'd like to compose a template document with a content document, then fill the content using the approac...

Find All ContentPlaceHolders in a MasterPage ASP.Net

I have to find the IDs of all the contentPlaceHolders in a MasterPage. ...

Where are SharePoint resources strings located.

I have a page layout, PeopleSearchResults.aspx programmed by someone else. It contains the following tag for a SharePoint refine people search results control. Title="<%$Resources:sps,RefineByTitle%>" Where on earth/SharePoint do I look to find the string that code references? ...

body onload handler in a content page

How to call a javascript function on body load of a content page? As I can not use the body load of my Master page body onload in this. ...

How do I pass data from a controller to a strongly typed user control in asp.net mvc?

I have a strongly typed User Control which should show a user's orders on all pages, it's included in a master page. I have an OrdersController which can give me the current orders and is used at other locations. How do I tell the UserControl in the Master Page that it should get its Data from that specific Controller / Controller Actio...

Multiple themes and masterpages in VB.NET

I was looking at Blogengine.NET today and he has an interesting setup for Themes, figured I wanted to do something similar, however.. I can't make it work at all. For each theme he has a folder like: /themes/Indigo/ /themes/Standard/ /themes/Mobile/ Each theme contains a site.master and they all have their own codebehind that looks ...

Is it possible to get a master page from my parent Virtual directory/ application/

Hi, I have a virtual directory inside of my main virtual directory in IIS. can i reference the parent application and reference its master page? If yes, how? ...

IIS server version compatibilty

Can we run an application developed for IIS 5.0 to its higher versions i.e. IIS (5.1, 6.0, 7.0)? ...

need help in asp.net content page

Hello all, Somebody please help me how to place the content page in center of the page.I am trying to do using css class but content doesn't have css property.In my application when i am clicking on LOGIN DETAILS , that page should open in the center but opening under the menu item. Here is my code: ...

Style Sheet is not working in one web page

Style sheet in master page is not working for one web page of asp.net application but it works for another web page. ...

which of is better between css or master pages for web page layout & design?

of course please tell me that css is better and faster or master pages for web layout and graphic design . ...

Ajax Script Manager and Master Pages

I'm building a new website and want to use Ajax controls. Do I need to put a ScriptManager control on both the MasterPage and on each content page? or Just on the MasterPage?(or just on the content page?) ...

Master Page location of controls in content page

I'm trying to rebuild a site using masterpages. I copied the markup of the controls in the old page and placed them in the content place holder in the new page(in source view). Since they were absolutely positioned the controls do not stay inside the content place holder in design view. Everything is between the content place holder...

ASP.NET masterpages: how to insert markup in the head section inside the aspx?

I know I can access the head section of a page which uses a masterpage programmatically this way (in code behind): This is only an example (I'd like to insert scripts and styles etc.): this.Header.Title = "I just set the page's title"; Is there a simple way to do this in a declarative way on in the aspx file itself? Sometimes it wo...

ASP. NET Master pages - do you use them?

Hi I'm learning ASP.NET using a great Sitepoint book, and I'm also learning more about CSS. I'm undecided on how useful Master Pages are. Could someone let me know whether the real world use mater pages - and if they don't what do they do? Cheers Mike ...

ASP.NET MasterPage + Javascript Error

After converting an ASP.NET webform (v3.5) to use a master page, I started getting a strange Javascript error. The content page has a block of javascript. Here it is: <script type="text/javascript"> var attCount = 0; function CreateAttachmentControl() { var newAtt = document.createElement('span'); var newAttN...

SharePoint Search on default Masterpage

Hi, I am trying to enable the search bar on my default master page. In the source code of the master page there is the following: <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"> <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/> </asp:ContentPlaceHolder> In the render of the page in design...

Can I change a nested master page's master dynamically?

Okay, so we all know about changing a master page dynamically in a page's OnPreInit event. But what about a nested master page? Can I change a master's master? There is no OnPreInit event exposed in the MasterPage class. Any ideas? ...

ASP.NET master pages order of adding scripts

I have a master page that adds the jquery library via a registerclientscriptinclude: Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "JQuery", Page.ResolveUrl("~/Scripts/jquery-1.2.6.min.js")); In a page that uses that master page I want to include a script that depends on jquery: Page.ClientScript.RegisterCli...

Stack overflow when setting MasterPage properties

I'm getting a stack overflow when tryin to set a public property in a MasterPage from an ASPX page. I'm making a "greeting card" editor, using a TabContainer. Each tab has a user control, and everything is updated when active tab is changed - while doing so I need to store all the data away in master page properties. From the ASPX pag...