Create a web application to demonstrate use of Master Page with applying Styles for page beautification.

 Source Code:- 

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Default.master.cs" 

Inherits="MasterPage.Default" %> 

<!DOCTYPE html> 

<html xmlns="http://www.rupamsolutions.com/1999/xhtml"> 

<head runat="server"> 

    <title></title> 

    <asp:ContentPlaceHolder id="head" runat="server"> 

    </asp:ContentPlaceHolder> 

    <style type="text/css">         .auto-style1 {             width: 800px;             height: 80px; 

        } 

    </style> 

</head> 

<body> 

    <form id="form1" runat="server"> 

      <table style="font-family:Arial"> 

    <tr> 

        <td colspan="2" style="background-color:#3399FF;  

            text-align:center" class="auto-style1"> 

            <h1> Rupam Solutions</h1> 

        </td> 

    </tr> 

    <tr> 

        <td style="height:500px; background-color:#66FFFF; width:150px"> 

            <h3>Menu</h3> 

        </td> 

        <td style="height:500px; background-color:#9999FF; width:650px"> 

             <h3>content</h3>   

                 <div> 

        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> 

        </asp:ContentPlaceHolder> 

    </div> 

        </td> 

    </tr> 

    <tr> 

        <td colspan="2" style="background-color:#3399FF; text-align:center"> 

            <b>Copyright @ Rupam Solutions </b> 

        </td> 

    </tr> 

</table> 

    </form> 

</body> </html> 

Output:-


Post a Comment

0 Comments