Tuesday, November 4, 2014

Using Master Pages in ASP.NET

How to Use Master Pages in ASP.NET


  1. First create your Web Application
  2. Right click on your Web Application icon and choose Add Item
  3. Choose the "Web Forms Master Page" option and click Add
  4. Add static content to your master page outside the "content placeholder" area. This content will appear on every page that you associate with the Master Page. Be sure to add the CSS or Stylesheet you would like to use throughout your website in the header, as this makes it easy to update in just one place.
  5. Create a new Web Form with Master Page and select desired master page file.
  6. Add desired content and repeat until your website is done.

Tuesday, October 21, 2014

Creating a Simple ASP.NET page with HTML5 and CSS3 features

Creating a Web Page in C# and ASP.NET
1. First create your ASP.NET Empty Web Application project
(File/New Project / ASP.NET Empty Web Application)




2. Next add a stylesheet to your project
(Right-click on Project, Add, Style Sheet) and name it styles.css.


3. Next drag the file to your html in between the <head> tags. It should look like this:




4. Add HTML5 semantic tags to separate page content and add meaning to your webpage. Add <header>, <nav>, <ul> list, and <section> with ASP.NET <form> inside.\






 5. Add some really fun CSS3 code to really spice up your page.


6.  TADA, you've got a working page!