Visual Studio has a starter project if you're planning on using web forms.
In Visual Studio (or Web Developer Express):
1. File --> New Project...
2. Find ASP.NET Web Application in Visual C# (or Visual Basic)--> Web
3. Call it what you like and click OK
4. You will see the basic site it created - it has a Default.aspx and About.aspx page. Both of these pages use the same header, nav, and footer. those items come from the Site.Master Page.
5. To add a new page with these elements, right click the web app and select Add --> New Item...
6. Under Visual C# --> Web, you will find "Web Form using Master Page". select it and click "Add"
7. Select the master page you want to you (you can have many in a single project) and click "OK"
8. Place the new page head content between the HeadContent tags and the body between the MainContent tags. Note that the html, head, body, and form tags are in the master page - do not recreate them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.