Sei sulla pagina 1di 9

Name Vivek .D.

Chauhan
Roll-no :- 4
Class :- TY BCA
SUBJECT : - ASP.NET
ASSIGNMENT :- 4
1. Create site using Master page, Theme, validation, style sheet page ,hyperlink.

Master page

HTML Code :-
<%@ Master Language="VB" CodeFile="MasterPage1.master.vb" Inherits="MasterPage1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 442px;
}
.style2
{
width: 885px;
height: 38px;
}
.style3
{
width: 302px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table class="style2">
<tr><td colspan ="2" align =center class="style1">
<h1 style="background-image: url('/vivekass4/Styles/img.png'); height: 165px;
width: 1063px; color: #FFFFFF;"><br />Narmada college of science of
commerce</h1></td></tr>
<tr>
<td class="style3">
<td> <a href="Default2.aspx" >home</a> &nbsp &nbsp <a href="Default3.aspx"
>registration</a> &nbsp &nbsp <a href="Default4.aspx" >education</a>&nbsp &nbsp<a

Page | 40
href="Default5.aspx" >contactus</a>&nbsp &nbsp<a href="Default6.aspx"> login</a>&nbsp
&nbsp<a href="Default7.aspx">personal</a></td>
</td>
</tr>
<tr>
<td class="style3" >
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
<marquee style="height: 108px; width: 123px"5"
direction="down"" >
<h1 style=" font-size: 15px;" > Aim for success, not perfection.
Never give up your right to be wrong,
because then you will lose the ability
to learn new things and move forward
with your life. Remember that fear
always lurks behind perfectionism. </h1></marquee>

</td>
<td>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder></td>
</tr>
</table>

</div>
</form>
</body>
</html>

Home page Code :-


<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage1.master"
AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


<style type="text/css">
.style9
{
height: 540px;
width: 762px;
}
.style10
{
height: 540px;
width: 2549px;
}
.style11
{
width: 312px;
height: 462px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table style="height: 479px; width: 1058px">
<tr>

Page | 41
<td class="style10"> <h3 style="font-size: 25px; font-weight: bold"> COLLEGE PROFILE
:</h3><h2> The year 1985 marked the inception of Narmada College
of Science and Commerce, an institute that would change
the lives of thousands of young minds in and around Bharuch.
NCSC is the first English Medium College, situated in the
industrially developing district of Bharuch. To meet the
growing needs of various industries in the district,
especially in Bharuch & Ankleshwar, NCSC was started by
the Narmada Education and Scientific Research Society,
a Trust set - up under the leadership of Shri N. Vittal
IAS, the then M.D., GNFC with the whole hearted
cooperation of prominent citizens and leading industrialists of the area.
</h2></td>
<td class="style9">
<asp:Image ID="Image1" runat="server" />
<img alt="" class="style11" src="Styles/narmada.jpg" />" /></td>
</tr>

</table>

</asp:Content>

Log In page code :-


<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage1.master"
AutoEventWireup="false" CodeFile="Default6.aspx.vb" Inherits="Default6" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1> &nbsp;Login page </h1>
<p>
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="15pt"
Text="User name :-"></asp:Label>
&nbsp;&nbsp;
<asp:TextBox ID="TextBox1" runat="server" Font-Bold="True" Font-
Size="15pt"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="Pls Enter name" ForeColor="Red"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
</p>
<p>
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="15pt"
Text="Password :-"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="TextBox2" runat="server" Font-Bold="True" Font-
Size="15pt"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ErrorMessage="Pls Enter password" ForeColor="Red"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
</p>
<p> &nbsp;</p>
<asp:Button ID="Button1" runat="server" Text="Button" />
</asp:Content>
Personal page code :-

Page | 42
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage1.master"
AutoEventWireup="false" CodeFile="Default7.aspx.vb" Inherits="Default7" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


<style type="text/css">
.style7
{
width: 187px;
height: 127px;
}
.style8
{
height: 127px;
}
.style9
{
width: 1286px;
height: 120px;
}
.style10
{
height: 120px;
width: 956px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<td>
<h2 align="left" style="height: 39px; width: 1283px; color: #FF9966;">Personal
Detail</h2>
<h4 align="left" style="font-size: 19px; font-weight: bold">Father
Name:&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="TextBox1" runat="server" Width="149px" Font-
Size="15pt"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="Pls Enter name" ForeColor="Red"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
</h4>
<h4 align="left">Mother Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; <asp:TextBox
ID="TextBox2"
runat="server" Width="144px" Font-Size="15pt"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ErrorMessage="Pls Enter name" ForeColor="Red"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
</h4>
<h4 align="left">Date Of Birth:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="TextBox3" runat="server" Width="144px" Font-
Size="15pt"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ErrorMessage="Pls Enter DOB" ForeColor="Red"
ControlToValidate="TextBox3"></asp:RequiredFieldValidator>
</h4>
<h4 align="left" style="font-size: 19px; font-weight: bold">Blood
Group:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<asp:DropDownList ID="DropDownList1" runat="server" Width="150px"
Font-Size="15pt">
<asp:ListItem>A+</asp:ListItem>
<asp:ListItem>A-</asp:ListItem>

Page | 43
<asp:ListItem>B+</asp:ListItem>
<asp:ListItem>B-</asp:ListItem>
<asp:ListItem>AB+</asp:ListItem>
<asp:ListItem>AB-</asp:ListItem>
<asp:ListItem>O+</asp:ListItem>
<asp:ListItem>O-</asp:ListItem>
</asp:DropDownList>
</h4>
<h4 align="left" style="top: auto; font-size: 19px; font-weight:
bold;">Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp; &nbsp;&nbsp;
<asp:TextBox ID="TextBox5" runat="server" Width="238px"
Height="87px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ErrorMessage="Pls Enter DOB" ForeColor="Red"
ControlToValidate="TextBox5"></asp:RequiredFieldValidator>
</h4>
<table><tr><td class="style9">
<h4 align="left" style="height: 129px; width: 187px">Sports Interest:&nbsp;</td>
<td class="style10">
<asp:CheckBoxList ID="CheckBoxList1" runat="server" AutoPostBack="True"
Width="450px">
<asp:ListItem>Football</asp:ListItem>
<asp:ListItem>Cricket</asp:ListItem>
<asp:ListItem>Badminton</asp:ListItem>
<asp:ListItem>Volleyball</asp:ListItem>
</asp:CheckBoxList></td></tr></table>
</h4>
<p align="left">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" Height="32px" Text="Save"
Width="134px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button2" runat="server" Height="32px" Text="Cancel"
Width="134px" />
</p>
</td>
</asp:Content>
Education page code :-
<%@ Page Title="" Language="VB" Theme="SkinFile" MasterPageFile="~/MasterPage1.master"
AutoEventWireup="false" CodeFile="Default4.aspx.vb" Inherits="Default4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


.style7
{
width: 385px;
}
.style8
{
width: 468px;
}
.style9
{
width: 1286px;
height: 127px;
}
.style10

Page | 44
{
width: 1286px;
height: 45px;
}
.style11
{
width: 1001px;
height: 45px;
}
.style12
{
width: 1286px;
height: 63px;
}
.style13
{
width: 1001px;
height: 63px;
}
.style14
{
width: 1286px;
height: 61px;
}
.style15
{
width: 1001px;
height: 61px;
}
.style16
{
width: 1286px;
height: 73px;
}
.style17
{
width: 1001px;
height: 73px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table style="width: 992px; height: 547px;"><tr><td colspan ="2" align ="center" class="style9">
<h2 align="left" align="center"
style="height: 75px; width: 980px; color: #FF9966;">Education Detail</h2></td></tr>
<tr><td class="style10"><h4 align="left">SSC Marks<asp:TextBox ID="TextBox1" runat="server"
Width="149px"></asp:TextBox>
</h4></td>
<td class="style11"><h4 align="left" style="width: 475px">SSC Board<asp:TextBox ID="TextBox2"
runat="server" Width="149px"></asp:TextBox>
</h4></td></tr>
<tr><td class="style12"><h4 align="left">HSC Marks:& <asp:TextBox ID="TextBox3" runat="server"
Width="149px"></asp:TextBox>
</h4></td><td class="style13"><h4 align="left" style="width: 477px">HSC Board
<asp:TextBox ID="TextBox4" runat="server" Width="138px"></asp:TextBox>
</h4></td></tr>
<tr><td class="style14"><h4 align="left">Graduatenbsp; &nbsp;&nbsp; <asp:TextBox ID="TextBox5"
runat="server" Width="149px"></asp:TextBox>
</h4></td><td class="style15"><h4 align="left" style="width: 478px">Graduate University;&nbsp;&nbsp;
<asp:TextBox ID="TextBox6" runat="server" Width="149px"></asp:TextBox>
</h4></td></tr>
<tr><td class="style16"><h4 align="left">Post Graduate <asp:TextBox ID="TextBox7" runat="server"
Width="149px"></asp:TextBox>
</h4></td><td class="style17"><h4 align="left" style="width: 479px">Post Graduate University
<asp:TextBox ID="TextBox8" runat="server" Width="149px"></asp:TextBox>
</h4></td></tr>
<tr><td colspan="2"> <asp:Button ID="Button1" runat="server" Height="32px" Text="Save"
Width="134px" />
<asp:Button ID="Button2" runat="server" Height="32px" Text="Cancel"

Page | 45
Width="134px" />
</td></tr></table>
</asp:Content>
Contact us page code :-

<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage1.master"


AutoEventWireup="false" CodeFile="Default5.aspx.vb" Inherits="Default5" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1> Contact Us </h1>
<p style="font-size: 19px; font-weight: bold"> E-main : -
<a href="mailto:an2711053@gmail.com">an2711***@gmail.com</a></p>
<p style="font-size: 19px; font-weight: bold"> Instagram :- vivekchauhan10_</p>
<p style="font-size: 19px; font-weight: bold"> Phone :- 7041200***</p>
<p style="font-size: 19px; font-weight: bold"> Address :- Tulsidham,Bharuch</p>
<p> &nbsp;</p>
</asp:Content>

Skin page code :-


<asp:button runat="server" BackColor="white" FontColor="black" />
<asp:TextBox runat="server" Font-Bold="True" Font-Size="20pt" FontColor="Red"/>

CSS page code :-


body
{
font-family: Footlight MT Light
}

OUTPUT:

Page | 46
Page | 47
Page | 48

Potrebbero piacerti anche