Print
Add To Favorites
Email To Friend
Rate This Article
|
Tips for Nested Master Pages and VS 2005 Design-Time
|
by Scott Guthrie
Feedback
|
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days):
17419/
19
|
|
|
Resources |
|
|
|
User Comments
Title:
That is a great tip!
Name:
Kim Berry
Date:
2008-01-04 9:10:31 AM
Comment:
I was about to give up on nested masterpages and use controls or something. But Daniel D' Armas tip worked - eg in default.aspx i put:
MasterPageFile="~/MasterPageStaticInner1.master "
and i can view it in design mode, and it functions at run time.
|
Title:
RuntimeMasterPageFile compiler warning
Name:
pam
Date:
2007-11-02 6:50:37 PM
Comment:
This code works great but is there a way to stop the compiler warning "Validation: Attribute 'RuntimeMasterPageFile' is not a valid attribute of element 'Page'?
|
Title:
Helpful Trick
Name:
Daniel D' Armas
Date:
2007-02-09 10:31:02 AM
Comment:
I've seen that clearing the content of the MasterPageFile attribute of the @Page let you view the page in design mode with no styles, but stills being awful for us (Developers) 'cause we have to set it again when we want to run the application, so trying to fix this i found something that could help, if you don't remove the content of the MasterPageFile Attribute but you only add a blank space the Runtime will render exactly like if you removed the content with the exception that you haven't to remove this space when your run your application.
Example: MasterPageFile="Admin.master "
So add a blank space and you're done!.
|
Title:
aay
Name:
jay
Date:
2006-08-19 2:39:10 AM
Comment:
RuntimeMasterPageFile="SubMaster.master"
error
please update your code
|
|
Product Spotlight
|
|