0% found this document useful (0 votes)
25 views7 pages

Awp Practical 5B

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views7 pages

Awp Practical 5B

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Practical 5 B

1]MasterPage.master

<%@ Master Language="C#" AutoEventWireup="true"


CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html>

<html>
<head runat="server">
<title></title>
<link href="style.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>

<table>
<tr>
<td>
<h1>This is a My first Page</h1>
</td>
</tr>
<tr>
<td>

<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">


<Items>
<asp:MenuItem NavigateUrl="~/home.aspx" Text="Home"
Value="Home"></asp:MenuItem>
<asp:MenuItem Text="Corses" Value="Corses">
<asp:MenuItem NavigateUrl="~/IT.aspx" Text="BScIT"
Value="BScIT"></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/bcom.aspx" Text="BCOM"
Value="BCOM"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem NavigateUrl="~/contact.aspx" Text="contact"
Value="contact"></asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="Yellow" BorderColor="Yellow" />
<StaticMenuItemStyle HorizontalPadding="10px"
VerticalPadding="10px" />
<StaticSelectedStyle BackColor="Pink" BorderColor="Pink"
VerticalPadding="10px" />
<DynamicHoverStyle BackColor="Pink" BorderColor="Pink" />
<DynamicMenuItemStyle HorizontalPadding="10px"
VerticalPadding="10px" />
<DynamicMenuStyle BackColor="Yellow"
BorderColor="#0F4F74" Width="200px" />
</asp:Menu>

</td>
</tr>
<tr>
<td>

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

</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td>
This is Footer!!!!!!!!!!!!!!
</td>
</tr>
</table>
</div>
</form>
</body>
</html>

2]home.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">

<div id="div1" style="background-color:aqua";height:"100%">


<h1 id="homeh1" >Home</h1>
<br />
<P>Welcome to my home page<br />
This is ty BSC IT ADV WEB PRACTICALS!!!!</P>
</div>
</asp:Content>

3] IT.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<h1 id="ith1">BScIT</h1>
</asp:Content>

4]bcom.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<h1 id="bcomh1">BCOM</h1>
</asp:Content>
5] contact.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
</asp:Content>
6]style.css

body {
}
table, td, tr {
border: double;
border-color: blue;
width: 100%;
}
h1 {
font-family: Chiller;
font-size: 50px;
text-align: center;
}
#homeh1, #ith1,#bcomh1 {
font-family: 'Century Schoolbook';
font-size: 80px;
}
p{
font-family:Algerian;
}
Output:

You might also like