Professional Documents
Culture Documents
Project
Project
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<main class="main">
<div class="container">
<div class="form_wrap">
<fieldset>
<legend>Personal Profile</legend>
<div class="main_form_wrap">
<input
class="form_input"
type="text"
id="hosteler-iD"
name="hosteler-iD"
/>
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="text"
id="hosteler-name"
name="hosteler-name" />
</div>
<div class="form_input_wrap">
<label for="DOB">DOB:</label>
<input class="form_input" type="date" id="DOB" name="DOB" />
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="text"
id="hostel-name"
name="hostel-name"
/>
</div>
<div class="form_input_wrap">
<option value="1">1</option>
<option value="2">2</option>
</select>
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="date"
id="joining-date"
name="joining-date"
/>
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="text"
id="room-type"
name="room-type"
/>
</div>
<div class="form_input_wrap">
</div>
<div class="form_input_wrap">
<label for="gender">gender:</label>
<option value="male">male</option>
<option value="female">female</option>
</select>
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="number"
id="mobile-no"
name="mobile-no"
/>
</div>
<div class="form_input_wrap">
<label for="phone">Phone:</label>
<input
class="form_input"
type="number"
id="phone"
name="phone"
/>
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="text"
id="mother-name"
name="mother-name"
/>
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="number"
id="mobile-no2"
name="mobile-no2"
/>
</div>
<div class="form_input_wrap">
<label for="city">City:</label>
</div>
<div class="form_input_wrap">
<label for="Purpose">Purpose:</label>
<input
class="form_input"
type="text"
id="Purpose"
name="Purpose"
/>
</div>
<label for="address">Address:</label>
<textarea
class="form_input
"
name="address"
id="address"
cols="30"
rows="10"
></textarea>
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="email"
id="email"
name="email"
/>
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="number"
id="contact"
name="contact"
/>
</div>
<textarea
class="form_input"
name="office-
details"
id="office-details"
cols="30"
rows="10"
></textarea>
</div>
<label for="phone2">Phone:</label>
<input
class="form_input"
type="number"
id="phone2"
name="phone2"
/>
</div>
<div class="form_input_wrap">
<input
class="form_i
nput"
type="text"
id="agreemen
t"
name="agree
ment"
/>
</div>
<div class="form_input_wrap">
<label for="completion-date">Completion Date:</label>
<input
class="form_input"
type="date"
id="completion-date"
name="completion-date"
/>
</div> </div>
</fieldset>
<fieldset>
<legend>Guardian Information</legend>
<div class="main_form_wrap">
<input
class="form_input"
type="text"
id="guardian-name"
name="guardian-name"
/>
</div>
<label for="address2">Address:</label>
<textarea
class="form_input"
name="address2"
id="address2"
cols="30"
rows="10"
></textarea>
</div>
<div class="form_input_wrap">
<input
class="form_input"
type="number"
id="mobile2"
name="mobile2"
/>
</div>
<div class="form_input_wrap">
<label for="phone2">Phone:</label>
<input
class="form_input"
type="number"
id="phone2"
name="phone2"
/>
</div> </div>
</fieldset>
<div class="form_submit">
</div>
</form>
</div>
</div>
</main>
</body>
</html>
Output:--
2. Design a registration page with proper validation as shown below. If the inputted data is
proper and valid then redirect user to next page which is a login page. Login page should
contain fields like username and password and a submit button with validation and if the
login details is valid then redirect user to welcome page.
<!DOCTYPE html>
<script runat="server">
End Sub
End Sub
</script>
<head>
<title>Registration Page</title>
<style type="text/css">
.style1
width: 288px;
.style2
width: 109px;
</style>
</head>
<body>
<fieldset style="width:280px">
<legend>Registration Form</legend>
</tr>
<tr>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td> </td><td class="style1"> </td>
<td class="style2"> </td>
</tr>
<tr>
<td> </td><td class="style1"> </td>
<td class="style2"> </td>
</tr>
<tr>
</asp:RadioButtonList></td>
</tr>
<tr>
</tr>
<tr>
<td>Address:</td><td class="style1">
</td>
<td class="style2"> </td>
</tr>
<tr>
</tr>
<tr>
<td>City</td><td class="style1">
<asp:ListItem Selected="True">Visnagar</asp:ListItem>
<asp:ListItem>Surat</asp:ListItem>
<asp:ListItem>Navsari</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>State:</td><td class="style1">
<asp:ListItem Selected="True">Gujarat</asp:ListItem>
<asp:ListItem Value="m">Mumbai</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>Country:</td><td class="style1">
<asp:ListItem Selected="True">India</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
</tr>
<tr>
<tr>
<td> </td><td class="style1"> </td>
<td class="style2"></td>
</tr>
<tr>
<tr>
<td> </td><td class="style1"> </td>
</tr>
<tr>
<td></td><td class="style1"> </td>
</tr>
<tr>
</tr>
</table>
</fieldset>
</form>
</body>
3. Design a registration form as shown in Q2. and perform insert, update, delete and display
operation with the help of grid view control.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.newStyle3 { background-color:
#FFFFFF;
.auto-style1 { height:
65px; text-align:
center;
</style>
</head>
<body>
<div>
%>
<tr>
</tr>
<tr>
<td class="auto-style3">
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style3">
</asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style3">
</asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style3">
</asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style3">
</asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style3">
<asp:Label ID="Label6" runat="server" Text="Gender">
</asp:Label>
</td>
<td>
Text="Female" />
</td>
</tr>
<tr>
<td class="auto-style3">
</asp:Label>
</td>
<td>
Height="16px" Width="105px">
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
Height="16px" Width="107px">
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
Height="16px" Width="100px">
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="auto-style3">
</td>
<td>
</asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style3">
</asp:Label>
</td>
<td>
<asp:ListItem></asp:ListItem>
<asp:ListItem>Visanagar</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="auto-style3">
</asp:Label>
</td>
<td>
Height="16px" Width="126px">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Gujrat</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="auto-style3">
</td>
<td>
Height="16px" Width="126px">
<asp:ListItem></asp:ListItem>
<asp:ListItem>India</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="auto-style3">
</asp:Label>
</td>
<td>
/>
</td>
</tr>
<tr>
<td class="auto-style3">
</asp:Label>
</td>
<td>
</td>
</tr>
<tr>
&nb
sp;
<asp:Button ID="Button4"
runat="server"
Text="Insert" Width="82px" />
Width="73px" />
</td>
</tr>
</table>
</div>
<p>
HorizontalAlign="Center" />
ForeColor="#333333" />
</asp:GridView>
</p>
</form>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
</body>
</html>
Output:--