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: 2/21/2006 4:11:01 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
jradi
Asp.Net User
masterpages question2/21/2006 4:11:01 PM

0/0

Hi Everyone,

I've created a masterpage called site.master in placed it into a masterpages directory under the web root. No  whenever I create a aspx page, I choose the masterpage that I want to use which then places the following code into my aspx page:

MasterPageFile="~/masterpages/site.master"

If I want to change my masterpage to another masterpage, I have to edit every aspx page and point to the new masterpage.

Is there a way to do this from a single place (i.e. web.config), so that when I create an aspx I don't have to point to any masterpage (rather the web.congif will take care of this)?

Thanks,

IJ

tmorton
Asp.Net User
Re: masterpages question2/21/2006 5:01:02 PM

0/0

A few suggestions:
  1. You could specify the master page in web.config, and remove the MasterPageFile attribute from the @Page directive.  Be aware that this will wipe out Intellisense, however.  See the Master Page Configuration section of this article Master Pages in ASP.NET 2.0.
  2. You might consider simply updating your master page, retaining the same name (while saving the original somewhere).
  3. Scott Guthrie blogged about one technique you can use with a BasePage to dynamically set the MasterPageFile at runtime: http://weblogs.asp.net/scottgu/archive/2005/11/11/430382.aspx
  4. Another option is to create an HttpModule that will also set the master page at run time.  See Brock Allen's blog post: ASP.NET 2.0 and Themes and Master Pages.


Terri Morton
Program Manager, Telligent

Wissen ist Macht
How to ask a question
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft Publisher 2007 for Dummies Authors: Jim McCarter, Jacqui Salerno Mabin, Pages: 366, Published: 2007
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Mastering InDesign CS3 for Print Design and Production: for print design and production Authors: Pariah S. Burke, Pages: 492, Published: 2007
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
Adobe Creative Suite 2: Classroom in a Book Authors: Adobe Creative Team, Adobe Systems, Pages: 307, Published: 2005
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007

Web:
master pages question - ASPnix Web Hosting - Forums ASP.NET hosting, SQL hosting, AJAX Hosting, Access hosting, ASP Web Hosting, Microsoft Windows hosting, iis7 hosting, VPS, dedicated, Windows Server, 2003, ...
nested master pages question - ASP.NET Forums Re: nested master pages question. 09-30-2008, 8:23 PM. Contact ... Re: nested master pages question. 09-30-2008, 8:49 PM. Contact ...
Microsoft TechNet SharePoint - General Question and Answers and ... Masterpage question. Victor, Just to add to Daniel, the feature you are referring to is important to many of the features in SharePoint. ...
Apple - Support - Discussions - Saving Master Pages question & ... Topic : Saving Master Pages question & photo layout question. This question is not answered. "Helpful" answers available: 2 . "Solved" answers available: 1 ...
Hottest "master-pages" Questions - Stack Overflow I've started to work a bit with master pages for an ASP.net mvc site and I've come across a question. When I link in a stylesheet on the master page it ...
Hottest "masterpages" Questions - Stack Overflow questions tagged. masterpages. sorted by hotness. Questions with the most recent interest and activity will appear first. See the complete list of tags. ...
masterpages question - ASP.NET Forums masterpages question. Last post 02-21-2006 12:01 PM by tmorton. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
ASP.NET Master Pages - Interview Questions ASP.NET Master Pages - What is Master Page in ASP.NET?, Advantages of using Master Page in ASP.NET , Define Multiple Master Page., How do you create Master ...
Re: Master page question : Adobe InDesign Re: Master page question - Join the discussion of Adobe InDesign in Creative Cow's forum for users of this powerful page layout system.
Masterpages and iframes question - .NET ASP Masterpages and iframes question. Get answers to your questions in our .NET ASP forum.




Search This Site:










authentication and ssl

creating a custom membership provider - no worky?!

a question about membership

aspnetdb.mdf and hosting

error on removing from role

strange error on logout

web.config directory security

setting password for aspnetdb

form based authentication

please help me....

changing power strength???

storing usernames and passwords in a different location to web management

creating a new membership provider userid

forms authentication, multiple server, file access

problem in using the .net roles and membership

launching excel from asp.net

reading files

windows authentication

anti flood script

selecting members based on their profile properties?

help with a custom login page

implementing security with asp.net web site administration tool.

is customizable field level security possible?

how do you import existing users from another table into the new custom form-based authentication in asp.net

authentication by form help

password recovery not sending email

ssl links on port 80

write file to a folder permission

connecting to sq server using a different user to aspnet

problem: i have a 2 step process in the createuserwizard

  Privacy | Contact Us
All Times Are GMT