program to demonstrate master page.
-----------------------------------------DESIGN-----------------------------------------------------
HTML File (“Master page”):
<%@MasterLanguage="VB"CodeFile="MasterPage.master.vb"Inherits="MasterPage"%>
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML
1.0
Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<headrunat="server">
<title>Untitled Page</title>
<asp:ContentPlaceHolderid="head"runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<formid="form1"runat="server">
<div>
<asp:ImageID="Image1"runat="server"Height="208px"ImageUrl="~/meru.png"
Width="996px"ImageAlign="Baseline"/>
</div>
<pstyle="margin-left: 200px; width: 659px;">
<asp:LinkButtonID="LinkButton1"runat="server">Home</asp:LinkButton>
<asp:LinkButtonID="LinkButton2"runat="server">About As</asp:LinkButton>
<asp:LinkButtonID="LinkButton3"runat="server">Branch</asp:LinkButton>
</p>
<asp:ContentPlaceHolderID="ContentPlaceHolder1"runat="server">
<pstyle="height: 0px; width: 1092px">
</p>
</asp:ContentPlaceHolder>
<p>
</p>
</form>
</body>
</html>
HTML File (“About as”):
<%@PageLanguage="VB"MasterPageFile="~/MasterPage.master"AutoEventWireup="false"CodeFile="About_is.aspx.vb"Inherits="Default3"title="Untitled
Page"%>
<asp:ContentID="Content1"ContentPlaceHolderID="head"Runat="Server">
</asp:Content>
<asp:ContentID="Content2"runat="server"
contentplaceholderid="ContentPlaceHolder1">
<pstyle="font-family: Algerian; font-size: 20px; color: #800080; margin-left: 160px;">
* OM INSTITUTE OF
ENGINEERING &TECHNOLOGY</p>
<pstyle="font-family: Algerian; font-size: 20px; color: #800080; margin-left: 120px;">
* OM INSTITUTE OF
DIPLOMA ENGINEERING</p>
<pstyle="font-family: Algerian; font-size: 20px; color: #008080">
* ADDRESS :
JUNAGADH-BHESAN ROAD,AT CHOKALI,</p>
<pstyle="font-family: Algerian; font-size: 20px; color: #008080">
*
JUNAGADH- 362310</p>
<pstyle="font-family: Algerian; font-size: 20px; color: #008080">
* TELEPHONE
: 0285-2680500</p>
<pstyle="font-family: Algerian; font-size: 20px; color: #008080">
* FAX
: 0285-2680666 </p>
<pstyle="font-family: Algerian; font-size: 20px; color: #008080">
* WEB :
WWW.OMEDUCATION.ADU.IN</p>
<pstyle="height: 0px; width: 1092px">
</p>
</asp:Content>
HTML File (“Branch”):
<%@PageLanguage="VB"MasterPageFile="~/MasterPage.master"AutoEventWireup="false"CodeFile="Branch.aspx.vb"Inherits="Default2"title="Untitled
Page"%>
<asp:ContentID="Content1"ContentPlaceHolderID="head"Runat="Server">
</asp:Content>
<asp:ContentID="Content2"runat="server"
contentplaceholderid="ContentPlaceHolder1">
<pstyle="height: 0px; width: 1092px">
</p>
<pstyle="height: 0px; width: 1092px; font-family: David; font-size: 35px; font-style: normal; color: #800000;">
BRANCH:</p>
<pstyle="height: 0px; width: 1092px; font-family: Algerian; font-size: x-large; color: #008000;">
1.
INFORMATION TECHNOLOGY </p>
<pstyle="height: 0px; width: 1092px; font-family: Algerian; font-size: x-large; color: #008000;">
2.
COMPUTER
EnGINEERING</p>
<pstyle="height: 0px; width: 1092px; font-family: Algerian; font-size: x-large; color: #008000;">
3. CIVIL
ENGINEERING</p>
<pstyle="height: 0px; width: 1092px; font-family: Algerian; font-size: x-large; color: #008000;">
4.
MACHNICAL
ENGINEERING</p>
<pstyle="height: 0px; width: 1092px; font-family: Algerian; font-size: x-large; color: #008000;">
5.ELECTRICAL
ENGINEERING</p>
<pstyle="height: 0px; width: 1092px; font-family: Algerian; font-size: x-large; color: #008000;">
6.
ELECTRONICS & COMMUNICATION </p>
<pstyle="height: 0px; width: 1092px">
</p>
<pstyle="height: 0px; width: 1092px">
</p>
<pstyle="height: 0px; width: 1092px">
</p>
<pstyle="height: 0px; width: 1092px">
</p>
<pstyle="height: 0px; width: 1092px">
</p>
<pstyle="height: 0px; width: 1092px">
</p>
<pstyle="height: 0px; width: 1092px; margin-left: 80px;">
</p>
</asp:Content>
-----------------------------------------code---------------------------------------------------------
PartialClass MasterPage
Inherits
System.Web.UI.MasterPage
ProtectedSub
LinkButton1_Click(ByVal sender AsObject, ByVal e As System.EventArgs) Handles
LinkButton1.Click
Response.Redirect("Home.aspx")
EndSub
ProtectedSub
LinkButton2_Click(ByVal sender AsObject, ByVal e As System.EventArgs) Handles
LinkButton2.Click
Response.Redirect("About_is.aspx")
EndSub
ProtectedSub
LinkButton3_Click(ByVal sender AsObject, ByVal e As System.EventArgs) Handles
LinkButton3.Click
Response.Redirect("Branch.aspx")
EndSub
EndClass
No comments:
Post a Comment