Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ 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>
- <h1>FeedBack Form</h1>
- <asp:Label ID="Label1" runat="server" Text="Title "></asp:Label>
- <asp:DropDownList ID="DropDownList1" runat="server">
- <asp:ListItem>MR.</asp:ListItem>
- <asp:ListItem>MRS.</asp:ListItem>
- </asp:DropDownList>
- <br />
- <asp:Label ID="Label2" runat="server" Text="First Name "></asp:Label>
- <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox1" ErrorMessage="Please Enter First Name">*</asp:RequiredFieldValidator>
- <br />
- <asp:Label ID="Label3" runat="server" Text="Last Name "></asp:Label>
- <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox2" ErrorMessage="Please Enter Last Name">*</asp:RequiredFieldValidator>
- <br />
- <asp:Label ID="Label4" runat="server" Text="E-Mail Id "></asp:Label>
- <asp:TextBox ID="TextBox3" runat="server" TextMode="Email"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox3" ErrorMessage="Please enter Email ID">*</asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox3" ErrorMessage="Recheck Entered Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
- <br />
- <asp:Label ID="Label5" runat="server" Text="Phone Number "></asp:Label>
- <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox4" ErrorMessage="Please Enter Phoner Number">*</asp:RequiredFieldValidator>
- <br />
- <asp:Label ID="Label6" runat="server" Text="Suggestion "></asp:Label>
- <asp:TextBox ID="TextBox5" runat="server" TextMode="MultiLine"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox5" ErrorMessage="Please Enter Your Valuable Feedback">*</asp:RequiredFieldValidator>
- <br />
- <br />
- <asp:Label ID="Label7" runat="server" ForeColor="#66FF33" Text=" "></asp:Label>
- <br />
- <asp:Button ID="Button1" runat="server" Text="SUBMIT" OnClick="Button1_Click" />
-
- <asp:Button ID="Button2" runat="server" Text="CLEAR" OnClick="Button2_Click" />
- <br />
- <br />
- <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List" ForeColor="Red" />
- </div>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment