MasterPage
MasterPage is common to all the pages.
ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application.
Master Layout/Design-
1. Header Section.
2. Navigation Bar.
3. Placeholder.
4. Footer.
How to create a MasterPage-
Steps-
1. Select the root > go to new item > Select MasterPage.
2. Delete Content Place Holder from your Master Page.
3. Go to HTML section in toolbox , Select table control.
Table controls snnipets-
a) shift+right arrow till the end of row >Modify> Merge cells.
b) Continue pressing Tab [increase no. of rows]
4. Fill the header section.
5. Fill the footer section.
6. Fill the menu section.
7. Leave the placeholder section blanked.
8. Drag and drop Content Place Holder from tool box.
To connect the .aspx page(web forms) with MasterPage-
Select the root > create new item > select web form >check the "Select Master page " checkbox > Add > select the master page > ok
NOTE-
* Master page can not be executed.
* Content Place holder will be designed in .aspx. In Master Page Content Place Holder remained blank.
Comments
Post a Comment