Friday, 25 August 2017

How to add Master Page in ASP.Net?

Master Page in asp.net is used for  Parent Form for more than one form with same design only content place is different.. It is used where we need same design for all the forms...

We can add Master Page by following Process...

Right Click on Project Name ===>>  Add New Item ====>  Select Master Page ===> Name the master page as you need==> Add

In the Below screen shot I have add a master page named it SiteMaster.master  (.master is the extension of master page.)



After add master page it will look like....Do not write any code in Content Place Holder....


You can code in master page like it....










No comments:

Post a Comment

Creating First WEB API Project from scratch ?

  For creating Web API project open your Visual Studio Editor and Create New Project as shown in below figure. Now you have to select  ASP.N...