CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/24/2007 2:17:43 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
Andrey1
Asp.Net User
Change Master Page on the fly?9/24/2007 2:17:43 PM

0/0

I have the following neccessity:

To be able to change layout of a page on the fly.

 In order to do that I developed a Master Page for each layout, each of which actually derive from the one common master page that has some functionality common for the ASPX page.

Ok, now if I implement a drop-down list on the page that will choose layout for the page, I will have to switch Master Page at moment when I catch the Selected Index Changed event of the drop-down control. At this point I cannot set the MasterPageFile property of the ASPX page as I'm getting the error:

Can only change Master Page in the PreInit event or earlier.

(description of the error is not 100% accurate, however, the idea is the same)

Does anyone has solution to this scenario, and if it's not Master Pages, how else can I switch the layout on the fly?

Thanks,

Andrey.

DarrellNorton
Asp.Net User
Re: Change Master Page on the fly?9/24/2007 2:26:55 PM

0/0

Check out this blog article:

http://www.edream.org/BlogArticle.aspx?RecordID=103 


Darrell Norton, MVP
My Blog on CodeBetter
2 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

Find all DIV IDs on a Master Page - newsgroup.asp-net-forum.general_asp-net-... Find all DIV IDs on a Master Page, > ROOT > NEWSGROUP > Asp.Net Forum > ... You couldn't have the Action change the IDs on the fly, I don't think. ...
MenuAdapter - Menu Items not visible if beyond bottom of page ... ... there isn't a browser-neurtal way of doing calculations in CSS on the fly. ... master page id's and rendered id's not matching up. sitemapnode file suggestion ...
[unsanity] Menu Master - Change menu shortcuts on the fly Menu Master: Menu Master is a haxie that allows you to change or remove menu ... Menu Master will now remember your change and automatically do it every time you ...
Janne Mattila's blog : Adding functionalities to pages by inheriting ... Or you want to change your master page for some reason on the fly... Change master page on the fly. Now we want to make something fancier...
Dynamic Sharepoint Rebranding Module - Home The idea is based on a HTTPModule that dynamically change the Master Page (and CSS) on the fly. ... dynamically change the Master Page (and CSS) on the fly. ...
ASP.NET Master Pages Tips and Tricks ... to dynamically change master pages on the fly during the Page's PreInit event ... change the MasterPageFile attribute's value to empty strings on the Page ...
?Change an INI file on the fly? - KiXtart.org - official site Page 1 of 1. 1. Topic Options #17610 - 02/02/18 11:32 PM ?Change an INI file on the fly? ... 12:10 AM Re: ?Change an INI file on the fly? Les Les. KiX Master ...
Changing Your HTML Form Action URLs On-The-Fly If you already have Master Form V3 on your site, you probably won't need to add ... The JavaScript can be anywhere on your page, in the HEAD area, in the BODY area ...



 
All Times Are GMT