You are on page 1of 32

Write a program to do the sum of two numbers on click of button

Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox3.Text = CInt(TextBox1.Text) + CInt(TextBox2.Text) End Sub End Class

Output :

Write a program to enter student information . Perform all the validation control of ASP.NET

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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>Untitled Page</title> <style type="text/css"> .style1 { width: 100%; } .style2 { width: 162px; } </style> </head> <body> <form id="form1" runat="server"> <div> <table class="style1"> <tr> <td class="style2"> <asp:Label ID="Label2" runat="server" Text="Enter Your Name Please"></asp:Label> </td> <td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" controltovalidate="textbox1" ErrorMessage="Name is required" Display ="Dynamic "> </asp:RequiredFieldValidator> </td>

</tr> <tr> <td class="style2"> <asp:Label ID="Label3" runat="server" Text="ID(Multiple of 2)"></asp:Label> </td> <td> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> <asp:CompareValidator ID="CompareValidator1" runat="server" controltovalidate="textbox2" ValueToCompare ="2" ErrorMessage="Id must be multiple of 2" Type ="integer" Operator = "GreaterThanEqual "></asp:CompareValidator> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label4" runat="server" Text="Day Off"></asp:Label> </td> <td> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> <asp:RangeValidator ID="RangeValidator1" runat="server" controltovalidate="textbox3" Type ="date" ErrorMessage="Day Off is not within the valid Interval" MinimumValue ="01/08/2010" MaximumValue ="10/08/2010"></asp:RangeValidator> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label5" runat="server" Text="Age"></asp:Label> </td> <td> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> <asp:CompareValidator ID="CompareValidator2" runat="server" controltovalidate="textbox4" ValueToCompare ="18" ErrorMessage="You must be 18+" Type ="integer" Operator = "GreaterThanEqual" > </asp:CompareValidator> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label6" runat="server" Text="E-Mail"></asp:Label> </td> <td> <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>

<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" controltovalidate ="textbox5" validationexpression=".*@.{2,}\..{2,}" ErrorMessage="E-Mail is not in valid format"></asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label7" runat="server" Text="Password"></asp:Label> </td> <td> <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" controltovalidate="textbox6" ErrorMessage="Please Enter the password"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label8" runat="server" Text="Re-Enter Password"></asp:Label> </td> <td> <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox> <asp:CompareValidator ID="CompareValidator3" runat="server" controltovalidate="textbox7" valuetocompare="textbox6.text.value" ErrorMessage="Password does not matched" Type = "String" Operator = "Equal" ></asp:CompareValidator> </td> </tr> </table> <br /> &nbsp; <br /> <br /> <asp:Button ID="Button1" runat="server" Text="submit" /> </div> </form> </body> </html>

Output :

Write a program to display the marksheet of student on selection of student name from listbox.

Imports System Imports System.Data Imports System.Configuration Imports System.Web Imports System.Data.OleDb Partial Class _Default Inherits System.Web.UI.Page Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Vihar\Documents\Database2.mdb;Persist Security Info=False") Dim da As New OleDbDataAdapter Dim cmd As New OleDbCommand() Dim dtset As New System.Data.DataSet

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then cmd.CommandText = "select id,name from info" cmd.Connection = cn da.SelectCommand = cmd cn.Open() da.Fill(dtset) cn.Close() DropDownList1.DataSource = dtset DropDownList1.DataTextField = "name" DropDownList1.DataValueField = "id" DropDownList1.DataBind() End If End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim id As Integer Dim dtset1 As New DataSet id = DropDownList1.SelectedValue cmd.CommandText = "select mark1,mark2,mark3 from marks where id=" + CStr(id)

cmd.Connection = cn da.SelectCommand = cmd cn.Open() da.Fill(dtset1) GridView1.DataSource = dtset1 GridView1.DataBind() End Sub End Class

Output :

Write a program to enter User Name and Password if the User Name and Password is correct then open another page to display user ID
Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim text1 As String Dim text2 As String If TextBox1.Text = "vihar_andharia@yahoo.com" And TextBox2.Text = "123456789" Then Session("user") = TextBox1.Text Response.Redirect("default2.aspx") End If End Sub End Class

Output Screen 1 :

Output Screen 2 :

Write a program to display information using master page

Source code of Faculty Information:


Imports System Imports System.Data Imports System.Configuration Imports System.Web Imports System.Data.OleDb Partial Class Default2 Inherits System.Web.UI.Page Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Arif\Documents\faculty.mdb;Persist Security Info=False") Dim da As New OleDbDataAdapter Dim cmd As New OleDbCommand() Dim dtset As New System.Data.DataSet Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then cmd.CommandText = "select * from faculty" cmd.Connection = cn da.SelectCommand = cmd cn.Open() da.Fill(dtset) cn.Close() DataList1.DataSource = dtset DataList1.DataBind() End If End Sub End Class

Source code of Department Information :

Imports System Imports System.Data Imports System.Configuration Imports System.Web Imports System.Data.OleDb Partial Class Default2 Inherits System.Web.UI.Page Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Arif\Documents\faculty.mdb;Persist Security Info=False") Dim da As New OleDbDataAdapter Dim cmd As New OleDbCommand() Dim dtset As New System.Data.DataSet Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then cmd.CommandText = "select * from department" cmd.Connection = cn da.SelectCommand = cmd cn.Open() da.Fill(dtset) cn.Close() DataList1.DataSource = dtset DataList1.DataBind() End If End Sub End Class

Output :

Write a program to change color of page on clicking of buttons

Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click mypage.Attributes.Add("bgcolor", "red") End Sub Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click mypage.Attributes.Add("bgcolor", "purple") End Sub Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click mypage.Attributes.Add("bgcolor", "green") End Sub End Class

Output :

Registration form :

Default.aspx.vb
Partial Class _Default Inherits System.Web.UI.Page Protected Sub Submit1_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Submit1.ServerClick If (Text1.Value.Length = 0) Then MsgBox("enter the user name ") End If If (Text2.Value.Length = 0) Then MsgBox("enter the user id ") End If If (Radio1.Checked = False And Radio2.Checked = False And Radio3.Checked = False) Then MsgBox("select your course") End If

If (Password1.Value.Length = 0) Then MsgBox("specify your password") End If If (Password2.Value.Length = 0) Then MsgBox("Re-Type ypur password") End If If (Password1.Value <> Password2.Value) Then MsgBox("enter your password again") End If If (Select1.Value.Length = 0) Then MsgBox("select your country") End If If (Text3.Value.Length = 0) Then MsgBox("enter your your contact no") End If If (Checkbox1.Checked = False) Then 'Submit1.Visible = True MsgBox("you the checkbox that you agree trems and condition") End If End Sub Protected Sub Reset1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Reset1.PreRender Text1.Value = "" Text2.Value = "" Text3.Value = "" Password1.Value = "" Password2.Value = "" Checkbox1.Checked = False Select1.Value = "" Radio1.Checked = False Radio2.Checked = False Radio3.Checked = False End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'Submit1.Disabled = True End Sub Protected Sub Text1_ServerChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles Text1.ServerChange 'If (IsNumeric(Text1.Value = True)) Then

'MsgBox("enter name with alphabet only") 'End If End Sub Protected Sub Text3_ServerChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles Text3.ServerChange If (IsNumeric(Text3.Value = False)) Then MsgBox("enter only number ") End If End Sub End Class

Default.aspx :
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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> <style type="text/css"> .style1 { width: 369px; } #Text1 { width: 289px; margin-right: 7px; } #Text2 { width: 288px; } #Password1 { width: 287px; } #Password2

{ width: 287px; } #Select1 { width: 294px; } #Text3 { width: 287px; } #Submit1 { width: 118px; height: 38px; } #Reset1 { width: 113px; } .style3 { font-size: xx-large; color: #00FFFF; font-style: italic; font-weight: bold; text-decoration: underline; width: 249px; border-left-color: #ACA899; border-right-color: #C0C0C0; border-top-color: #ACA899; border-bottom-color: #C0C0C0; } .style4 { width: 369px; height: 69px; } .style6 { height: 69px; } .style7 { width: 343px; height: 69px; } .style8 {

width: 343px; } </style> </head> <body bgcolor="#cc0066"> <form id="form1" runat="server" > <div> <table style="width: 100%; height: 136px; font-family: 'Monotype Corsiva'; font-size: large; font-weight: bolder; font-style: italic; font-variant: inherit; text-transform: uppercase; color: #FFCC00;" bgcolor="#CC0066"> <tr> <td class="style4"> <br /> <span class="style3">REGISTRATION&nbsp;&nbsp; FORM</span><br /> </td> <td class="style7"> </td> <td class="style6"> </td> </tr> <tr> <td class="style1"> User Name</td> <td class="style8"> <input id="Text1" maxlength="25" tabindex="1" type="text" runat="server" style="font-family: 'Monotype Corsiva'; font-size: medium; font-weight: normal; color: #008000; background-color: #CCFFFF"/></td> <td> &nbsp;</td> </tr> <tr> <td class="style1"> User ID</td> <td class="style8"> <input id="Text2" type="text" runat="server" style="font-family: 'Monotype Corsiva'; font-size: medium; font-weight: normal; color: #008000; background-color: #CCFFFF"/></td> <td> &nbsp;</td> </tr> <tr> <td class="style1"> course</td> <td class="style8"> <input id="Radio1" type="radio" name="radio" runat="server"/> BCA&nbsp;&nbsp; <input id="Radio2" type="radio" name="radio" runat="server"/>&nbsp;

BBA&nbsp; <input id="Radio3" type="radio" name="radio" runat="server"/>&nbsp; BSc.IT</td> <td> &nbsp;</td> </tr> <tr> <td class="style1"> Password</td> <td class="style8"> <input id="Password1" type="password" runat="server" style="font-family: 'Monotype Corsiva'; font-size: medium; font-weight: normal; background-color: #CCFFFF; color: #008000;"/></td> <td> &nbsp;</td> </tr> <tr> <td class="style1"> Re-Type Password</td> <td class="style8"> <input id="Password2" type="password" runat="server" style="font-family: 'Monotype Corsiva'; font-size: medium; font-weight: normal; color: #008000; background-color: #CCFFFF"/></td> <td> &nbsp;</td> </tr> <tr> <td class="style1"> Country</td> <td class="style8"> <select id="Select1" name="D1" runat="server" style="font-family: 'Monotype Corsiva'; font-size: medium; font-weight: normal; color: #008000; background-color: #CCFFFF"> <option >india</option> <option >australia</option> <option >usa</option> <option >uae</option> <option >uk</option> </select></td> <td> &nbsp;</td> </tr> <tr> <td class="style1"> Contact No.</td> <td class="style8"> <input id="Text3" type="text" maxlength="10" runat="server" style="font-family: 'Monotype Corsiva'; font-size: medium; font-weight: normal;

color: #008000; background-color: #CCFFFF"/></td> <td> &nbsp;</td> </tr> <tr> <td class="style1"> &nbsp;</td> <td class="style8"> <br /> <br /> <input id="Checkbox1" type="checkbox" runat="server"/> do you agree terms and condition.</td> <td> &nbsp;</td> </tr> <tr> <td class="style1"> &nbsp;</td> <td class="style8"> <br /> <input id="Submit1" type="submit" value="submit" runat="server" style="background-color: #FFFF99; font-family: 'Monotype Corsiva'; font-size: xlarge; font-weight: bolder; font-style: oblique; font-variant: inherit; text-transform: capitalize; color: #008000; text-decoration: underline"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input id="Reset1" type="reset" value="reset" runat="server" style="font-family: 'Monotype Corsiva'; font-size: x-large; font-weight: bolder; font-style: oblique; font-variant: inherit; text-transform: capitalize; color: #008000; textdecoration: underline; background-color: #FFFF99"/><br /> </td> <td> </td> </tr> </table> </div> </form> </body> </html>

Text box color change :

default.aspx :

Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Text1.Attributes.Add("style", "background-color:red") End Sub Protected Sub Submit1_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Submit1.ServerClick If (Radio1.Checked = True) Then Radio2.Checked = False Radio3.Checked = False Text1.Attributes.Add("style", "background-color:blue") End If

If (Radio2.Checked = True) Then Radio1.Checked = False Radio3.Checked = False Text1.Attributes.Add("style", "background-color:pink") End If If (Radio3.Checked = True) Then Radio1.Checked = False Radio2.Checked = False Text1.Attributes.Add("style", "background-color:green") End If End Sub End Class

Ticket reservation system :

VB Source code :
Imports System.Data Imports System.Data.OleDb Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click fillgrid() End Sub Protected Sub GridView1_PageIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.PageIndexChanged Response.Write("current page index is" + GridView1.PageIndex.ToString) End Sub Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging GridView1.PageIndex = e.NewPageIndex fillgrid() End Sub Public Sub fillgrid() Dim conn As New OleDbConnection("z:\app\datagrid\student.mdb") Dim cmd As New OleDbCommand("select * from student", conn) Dim ds As New DataSet Dim da As New OleDbDataAdapter(cmd) Try da.Fill(ds) GridView1.DataSource = ds.Tables(0) GridView1.DataBind() Catch ex As Exception Response.Write(ex.Message) End Try

End Sub Protected Sub GridView1_RowCancelingEdit(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GridView1.RowCancelingEdit GridView1.EditIndex = -1 fillgrid() End Sub Protected Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GridView1.RowDeleting Dim id As String id = GridView1.Rows(e.RowIndex).Cells(1).Text Try 'code to delete record fillgrid() Response.Write("id deleted" + id) Catch ex As Exception Response.Write(ex.Message) End Try End Sub Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing GridView1.EditIndex = e.NewEditIndex fillgrid() End Sub Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating Dim id As String Dim End Sub End Class

Page Source Code :


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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> <style type="text/css"> .style1 { width: 100%; background-color: #FF99FF; } .style2 { text-align: center; } .style3 { font-size: xx-large; } .style4 { width: 100%; } .style5 { text-align: left; width: 147px; } .style6 { width: 147px; } .style7 { font-family: "Arial Black"; font-weight: bold; width: 30px; } .style8 { text-align: left; }

.style9 { text-align: left; width: 163px; } </style> </head> <body> <form id="form1" runat="server"> <div> <table class="style1" bgcolor="Blue"> <tr> <td class="style2"> <span class="style3" lang="EN-US" style="font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;; mso-fareastfont-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; color: #CC0099;"> <strong>Railway Reservation <br /> </strong> <table cellpadding="2" cellspacing="4" class="style4" style="color: #0000FF; font-size: medium; font-family: 'Lucida Sans'" bgcolor="Blue"> <tr> <td class="style5" style="color: #800000; font-size: large; font-family: 'Lucida Sans Typewriter'" bgcolor="White"> <span lang="EN-US" style="font-size:large; font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;; mso-bidi-font-family:&quot;Times New Roman&quot;;mso-ansi-language:EN-US;mso-fareastlanguage: EN-US;mso-bidi-language:AR-SA">Passenger Name</span></td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <asp:TextBox ID="Txtpassengername" runat="server" Width="155px"></asp:TextBox> </td> <td class="style8" bgcolor="White"> <asp:RequiredFieldValidator ID="RFVPassengerName" runat="server" ControlToValidate="Txtpassengername" ErrorMessage="Passenger Name Can Not Be Blank...." Font-Bold="True" Font-Size="Large" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style5" style="color: #800000; font-size: large; font-family: 'Lucida Sans Typewriter'"

bgcolor="White"> <span lang="EN-US" style="font-size: large; font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidifont-family: &quot;Times New Roman&quot;; mso-ansi-language: EN-US; mso-fareast-language: ENUS; mso-bidi-language: AR-SA; text-align: left;"> Total Person</span></td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <asp:TextBox ID="Txttotalperson" runat="server" Width="154px"></asp:TextBox> </td> <td class="style8" bgcolor="White"> <asp:RequiredFieldValidator ID="RFVTotalPerson" runat="server" ControlToValidate="Txttotalperson" ErrorMessage="Total Person Field Can Not Be Blank...." Font-Bold="True" Font-Size="Large" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style5" style="color: #800000; font-size: large; font-family: 'Lucida Sans Typewriter'" bgcolor="White"> <span lang="EN-US" style="font-size:large; font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;; mso-bidi-font-family:&quot;Times New Roman&quot;;mso-ansi-language:EN-US;mso-fareastlanguage: EN-US;mso-bidi-language:AR-SA">No of Adult</span></td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <asp:TextBox ID="Txtno_of_adult" runat="server" Width="154px"></asp:TextBox> </td> <td class="style8" bgcolor="White"> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Txtno_of_adult" ErrorMessage="No Of Adult Can Not Be Blank...." Font-Size="Medium" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style5" style="color: #800000; font-size: large; font-family: 'Lucida Sans Typewriter'" bgcolor="White"> <span lang="EN-US" style="font-size: large; font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-

font-family: &quot;Times New Roman&quot;; mso-ansi-language: EN-US; mso-fareast-language: ENUS; mso-bidi-language: AR-SA; text-align: left;"> No of Child</span></td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <asp:TextBox ID="Txtno_of_child" runat="server" Width="153px"></asp:TextBox> </td> <td class="style8" bgcolor="White"> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Txtno_of_child" ErrorMessage="No Of Child Can Not Be Blank..." Font-Bold="True" Font-Size="Large" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style5" style="color: #800000; font-size: large; font-family: 'Lucida Sans Typewriter'" bgcolor="White"> <span lang="EN-US" style="font-size:large; font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;; mso-bidi-font-family:&quot;Times New Roman&quot;;mso-ansi-language:EN-US;mso-fareastlanguage: EN-US;mso-bidi-language:AR-SA">Traveling From</span></td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <asp:DropDownList ID="DropDownTravelling_From" runat="server" Height="19px" Width="154px"> <asp:ListItem></asp:ListItem> <asp:ListItem>SURAT</asp:ListItem> <asp:ListItem>MUMBAI</asp:ListItem> <asp:ListItem>DELHI</asp:ListItem> </asp:DropDownList> </td> <td class="style8" bgcolor="White"> <asp:RequiredFieldValidator ID="RFVTravellingFrom" runat="server" ControlToValidate="DropDownTravelling_From" ErrorMessage="Choose Any One Place From Given List..." Font-Bold="True" Font-Size="Large" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style5" style="color: #800000; font-size: large; font-family: 'Lucida Sans Typewriter'" bgcolor="White"> <span lang="EN-US" style="font-size:large; font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;;mso-fareast-font-family:&quot;Times New

Roman&quot;; mso-bidi-font-family:&quot;Times New Roman&quot;;mso-ansi-language:EN-US;mso-fareastlanguage: EN-US;mso-bidi-language:AR-SA">Traveling To</span></td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <span class="style3" lang="EN-US" style="font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;; msofareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; color: #CC0099;"> <asp:DropDownList ID="DropDownTravelling_To" runat="server" Height="19px" Width="154px"> <asp:ListItem></asp:ListItem> <asp:ListItem>SURAT</asp:ListItem> <asp:ListItem>MUMBAI</asp:ListItem> <asp:ListItem>DELHI</asp:ListItem> </asp:DropDownList> </span> </td> <td class="style8" bgcolor="White"> <asp:RequiredFieldValidator ID="RFVTravellingTo" runat="server" ControlToValidate="DropDownTravelling_To" ErrorMessage="Choose Any One Place From Given List..." Font-Bold="True" Font-Size="Large" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style5" style="color: #800000; font-size: large; font-family: 'Lucida Sans Typewriter'" bgcolor="White"> <span lang="EN-US" style="font-size:large; font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;; mso-bidi-font-family:&quot;Times New Roman&quot;;mso-ansi-language:EN-US;mso-fareastlanguage: EN-US;mso-bidi-language:AR-SA">Date of Travelling</span></td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <asp:TextBox ID="TxtDateOfTravelling" runat="server" Width="153px"></asp:TextBox> </td> <td class="style8" bgcolor="White"> <asp:RequiredFieldValidator ID="RFVDateOfTravelling" runat="server" ControlToValidate="TxtDateOfTravelling" ErrorMessage="Date Field Can Not BE Blank..." Font-Bold="True" Font-Size="Large" SetFocusOnError="True">*</asp:RequiredFieldValidator>

</td> </tr> <tr> <td class="style5" style="color: #800000; font-size: large; font-family: 'Lucida Sans Typewriter'" bgcolor="White"> E<span lang="EN-US" style="font-size:12.0pt;font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;; mso-bidi-font-family:&quot;Times New Roman&quot;;mso-ansi-language:EN-US;mso-fareastlanguage: EN-US;mso-bidi-language:AR-SA">mail<span style="mso-spacerun:yes">&nbsp; I</span>d</span></td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <asp:TextBox ID="TxtEmail_ID" runat="server" Width="154px"></asp:TextBox> </td> <td class="style8" bgcolor="White"> <asp:RegularExpressionValidator ID="REVEmailId" runat="server" ControlToValidate="TxtEmail_ID" ErrorMessage="Email Id Is Not Valid..." Font-Bold="True" Font-Size="Large" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+ ([-.]\w+)*">*</asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style5" style="color: #800000; font-size: large; font-family: 'Lucida Sans Typewriter'" bgcolor="White"> <span lang="EN-US" style="font-size:large; font-family: &quot;Bookman Old Style&quot;,&quot;serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;; mso-bidi-font-family:&quot;Times New Roman&quot;;mso-ansi-language:EN-US;mso-fareastlanguage: EN-US;mso-bidi-language:AR-SA">Mobile No</span></td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <asp:TextBox ID="TxtMobile_No" runat="server" Width="154px"></asp:TextBox> </td> <td class="style8" bgcolor="White"> <asp:RegularExpressionValidator ID="RrEVMobileNo" runat="server" ControlToValidate="TxtMobile_No" ErrorMessage="Mobile Number Must Be 10 Digit.." Font-Bold="True" Font-Size="Large" SetFocusOnError="True" ValidationExpression="\d{10}">*</asp:RegularExpressionValidator> </td> </tr> <tr>

<td class="style6" style="color: #800000; font-size: medium; font-family: 'Lucida Sans Typewriter'" bgcolor="White"> &nbsp;</td> <td class="style7" style="color: #000080" bgcolor="White"> :</td> <td class="style9" align="center" bgcolor="White"> <asp:Button ID="Btnsubmit" runat="server" BorderStyle="Dashed" FontBold="True" Font-Size="Medium" ForeColor="#990099" Text="SUBMIT" /> </td> <td class="style8" bgcolor="White"> <asp:Label ID="lblinsert" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Lime"></asp:Label> </td> </tr> </table> </span> </td> </tr> </table> </div> </form> </body> </html>

You might also like