Click here to Skip to main content
15,895,746 members
Articles / Web Development / HTML

Master Pages and Themes

Rate me:
Please Sign up or sign in to vote.
4.77/5 (15 votes)
9 Apr 2012CPOL7 min read 253.2K   16.2K   27  
With a Master Page you can define the look and feel of your application which includes multiple content placeholders. Along with Master Pages, you can work with themes to provide the user with a great User Interface.
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class ="welcome">
<h2><span>Welcome</span> to our site</h2>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin malesuada leo quis lectus. Maecenas dignissim vestibulum sapien. Etiam ligula tellus, suscipit sit amet, cursus quis, vestibulum ut, est. Praesent eget massa viverra odio tincidunt fringilla. Vestibulum posuere molestie purus. Vivamus eget libero. Nulla nonummy nunc ac sem. In odio tortor, ullamcorper sollicitudin, congue sit amet, bibendum vehicula, lectus. Ut tempor quam nec orci. Etiam mattis. Aliquam nulla velit, faucibus sed, porta ac, varius non, tortor.</p>
   <ul>
   <li>Mauris risus tellus, sodales quis, sagittis vitae, molestie sed, nunc. </li>
   <li>Fusce ornare, turpis vel rutrum blandit, enim diam aliquet purus, vel accumsan risus enim sit amet nisl. </li>
   <li>Ut fringilla ornare libero. Nunc sodales.</li>
   </ul>
   <h2><span>Featured</span>Categories</h2>
</div>
<div class ="imagecells">
<table>
<tr>
<td>
<img src ="Images/Blue hills.jpg" alt ='' />
</td>
<td>
<img src ="Images/Sunset.jpg" alt ='' />
</td>
<td>
<img src ="Images/Water lilies.jpg" alt ='' />
</td>
</tr>
<tr>
<td>
<img src ="Images/Sunset.jpg" alt ='' />
</td>
<td>
<img src ="Images/Blue hills.jpg" alt ='' />
</td>
<td>
<img src ="Images/Winter.jpg" alt ='' />
</td>
</tr>
</table>
</div>
<div class ="quotehomepage">
<blockquote >Hello, I'm a beautiful pullquote, elini a consectetuer mist 
adipiscing elit. Nunc euismod adipiscing min an agna. Quisque 
sollicitudin adipicin athenisi a nisi.</blockquote>
</div>
</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Software Developer Collabera
Singapore Singapore
S V Sai Chandra is a Software Engineer from Hyderabad Deccan. He started Embedded Programing in his college days and now he is a Web Developer by Profession. He Loves coding and his passion has always been towards Microsoft Technologies. Apart from coding his other hobbies include reading books, painting and hang out with friends is his most favorite past time hobby.
He blogs at
http://technowallet.blogspot.com
Technical Skills:
C#,Ado.Net,Asp.Net,Sql Server,JavaScript,XML,Web services.

Comments and Discussions