Professional Documents
Culture Documents
16
Developed By: Ashish pare
Aim: Write a program to
Coding:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Image ID="Image1" runat="server" ImageUrl="~/images new/asish pare.jpg"
Height="300" ImageAlign="Middle" BackColor="#FF6699" BorderColor="#CC99FF"
BorderStyle="Dashed" BorderWidth="3"
</div>
</form>
</body>
</html>
Output:
Practical No.17
Developed By: Ashish Pare
Aim: Registration form
Coding:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h3>Regestration Form</h3>
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
</asp:CompleteWizardStep>
</WizardSteps>
</asp:CreateUserWizard>
</form>
</body>
</html>
OUTPUT:
Practical No.18
Developed By: Ashish Pare
Aim:
Coding:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="WebApplication2.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<div>
UserName:<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
PassWord:<asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
</form>
</body>
</html>
OUTPUT:
Practical No.19
Developed By: Ashish Pare
Aim:
Coding:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="WebApplication3.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h1>Register</h1>
username:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
password:<asp:TextBox ID="TextBox2" runat="server"
TextMode="Password"></asp:TextBox>
confirm password:<asp:TextBox ID="TextBox3" runat="server"
ControlToValidate="TextBox3"
TextMode="Password"></asp:TextBox><asp:CompareValidator ID="CompareValidator1"
runat="server" ErrorMessage="Password mismatch" ControlToValidate="TextBox3"
ControlToCompare="TextBox2"></asp:CompareValidator>
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>
</form>
</body>
</html>
OUTPUT:
Practical No.20
Developed By: Jivan Durge
Aim: Range validator
Coding:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs"
Inherits="WebApplication3.WebForm2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Name:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
age:<asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox><asp:RangeValidator ID="RangeValidator1" runat="server"
ErrorMessage="Enter a correct age kindly check range" ValidationGroup="vg"
ControlToValidate="TextBox2" Type="Integer" MaximumValue="40"
MinimumValue="18"></asp:RangeValidator>
<br />
<br />
class:<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</div>
<p>
<asp:Button ID="Button1" runat="server" Text="Enter" />
</p>
</form>
</body>
</html>
OUTPUT: