<asp:Panel ID="Panel1" runat="server"> <table class="style4"> <tr> <td class="style9"> <asp:Label ID="Label2" runat="server" Text="Name" Font-Bold="True" ForeColor="#FFD028"> </td> <td class="style10"> <asp:TextBox ID="TxtName" runat="server" CssClass="Roundedcorner" ToolTip="Name" CausesValidation="True"> </td> <td class="style11"> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtName" ErrorMessage="*" ValidationGroup="Contact" Display="Dynamic">Please fill <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*" ControlToValidate="TxtName" Display="Dynamic" ValidationExpression="^([a-zA-z\s]{2,32})$" ValidationGroup="Contact">Alphabets only </td> </tr> <tr> <td class="style8"> <asp:Label ID="Label3" runat="server" Text="Email Id" Font-Bold="True" ForeColor="#FFD028"> </td> <td class="style7"> <asp:TextBox ID="TxtEmail" runat="server" CssClass="Roundedcorner" ToolTip="Email Id" CausesValidation="True"> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtEmail" Display="Dynamic" ErrorMessage="*" ToolTip="Email Id" ValidationGroup="Contact">Please fill <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxtEmail" Display="Dynamic" ErrorMessage="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="Contact"> </td> </tr> <tr> <td class="style8"> <asp:Label ID="Label4" runat="server" Text="Contact Number" Font-Bold="True" ForeColor="#FFD028"> </td> <td class="style7"> <asp:TextBox ID="TxtContact" runat="server" CssClass="Roundedcorner" ToolTip="Contact Number" CausesValidation="True"> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxtContact" ErrorMessage="*" ValidationGroup="Contact" Display="Dynamic">Please fill <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" Display="Dynamic" ErrorMessage="*" ValidationExpression="^[0-9]{6,10}$" ControlToValidate="TxtContact">Numbers only </td> </tr> <tr> <td class="style8"> <asp:Label ID="Label5" runat="server" Text="Your Message" Font-Bold="True" Font-Italic="False" Font-Strikeout="False" Font-Underline="False" ForeColor="#FFD028"> </td> <td class="style7"> <asp:TextBox ID="TxtMessage" runat="server" CssClass="Roundedcorner" TextMode="MultiLine" Width="131px" ToolTip="Feedback Message" CausesValidation="True"> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxtMessage" Display="Dynamic" ErrorMessage="*" ValidationGroup="Contact">Cannot be blank </td> </tr> <tr><td colspan="3"></td></tr> <tr> <td class="style8"> </td> <td class="style7"> <asp:Button ID="BtnSubmit" runat="server" CssClass="css3button" Text="Submit" OnClick="BtnSubmit_Click1" ValidationGroup="Contact" Height="34px" Width="94px" /> </td> <td> </td> </tr> <tr> <td class="style8"> </td> <td class="style7"> </td> <td> </td> </tr> </table> <asp:Panel ID="Panel2" runat="server" style="top: 95px; left: 38px; position: absolute; height: 19px; width: 321px"> <br /> <table> <tr><td><asp:Image ID="Image2" runat="server" ImageUrl="images/Right1.png" Height="33px" Width="46px" /></td> <td><p style="font-size:11pt;font-family:Comic Sans MS; color: #FFD028; font-weight: 700;">We have received your feedback</p></td> </tr> </table>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)