Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can we create master page in .net ??
contentplaceholder i couldn't get this work..plz explain it to me..i got designed a page as a master page but on right click of the page it is not showing "view in browser"...does it happen in master page that doesnt show this option..??
Posted

Please refer some videos on
Creating Master Page[^].

Also check out this How to create and use Master Pages in ASP.NET[^]

but on right click of the page it is not showing "view in browser"
The following links will solve your doubt.
http://msdn.microsoft.com/en-us/library/wtxbf3hh.aspx[^]
http://msdn.microsoft.com/en-us/library/ehszf8ax.aspx[^]
 
Share this answer
 
v2
Hi Ankit.

Please read some examples about ASP.NET & Master Pages before working on it.

Master Page in ASP.NET itself never view in browser but its content page will be view in the browser.

Read some articles about it.

http://www.w3schools.com/aspnet/aspnet_masterpages.asp[^]

http://msdn.microsoft.com/en-us/library/wtxbf3hh.aspx[^]
 
Share this answer
 
Right click on your website

SQL
add a master page like this way
Add->New Item -> Masterpage.Master


New add new contect page :-
Add->New Item->Webpage.aspx

in bottom of this there is check box for all a master page tick mark this. and select your master page which you want to attach.


Or Find this link:-
http://www.asp.net/web-forms/tutorials/master-pages/creating-a-site-wide-layout-using-master-pages-cs[^]
 
Share this answer
 
Please go through this article: Beginner's Tutorial on Master Pages in ASP.NET[^]

look into the sample project.
Do what has been suggested in the article.

I am sure a lot of your problems will be resolved once you go through this article.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900