Link for code samples used in the demo
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
Link for all dot net and sql server video tutorial playlists
In this video, we will discuss, how to select a master page dynamically at runtime. Let us understand this with an example.
The master page and content page are merged during the initialization stage of page processing. A master page must be assigned before then. We generally assign a master page dynamically during the PreInit stage.
This is what we want to achieve.
1. We have 2 master pages in our application.
2. Include a dropdownlist on both the master pages. The dropdownlist should display both the master pages.
3. As we select a master page from the dropdownlist, we want the selected master page to be dynamically set as the master page.