<table>
<tr>
<td>
<asp:Label ID="lblName" runat="server" Text="First
Name:"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtName" runat="server" ViewStateMode="Disabled"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName"
Display="Dynamic" ErrorMessage="! Please Enter Your
Name Here" ForeColor="#FF3300"
SetFocusOnError="True"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblEmail" runat="server" Text="Email
ID:"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtEmailID" runat="server" ViewStateMode="Disabled"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvEmailID" runat="server" ControlToValidate="txtEmailID"
Display="Dynamic" ErrorMessage="! Enter a Valid Email
ID"
ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revEmailID" runat="server" ControlToValidate="txtEmailID"
Display="Dynamic" ErrorMessage="! Enter a Valid Email
ID(eg: eg@domain.com)"
ForeColor="Red" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblCntNum" runat="server" Text="Contact
Number:"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtCntNum" runat="server" ViewStateMode="Disabled"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvCntNum" runat="server" ControlToValidate="txtCntNum"
Display="Dynamic" ErrorMessage="! Please Enter Contact
Number Here" ForeColor="Red"
SetFocusOnError="True"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revEmailID0" runat="server" ControlToValidate="txtCntNum"
Display="Dynamic" ErrorMessage="! Enter 5 Digit Contact
Number." ForeColor="Red"
SetFocusOnError="True" ValidationExpression="\d{5}"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblMessage" runat="server" Text="Leave
Message:"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine" Height="100px" ForeColor="Red"
ViewStateMode="Disabled"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvMessage" runat="server" ControlToValidate="txtMessage"
Display="Dynamic" ErrorMessage="! Please Enter Your
Message Here." ForeColor="Red"
SetFocusOnError="True"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Button ID="btnSend" runat="server" Text="Save to xmlfile" OnClick="btnSend_Click" />
</td>
<td>
</td>
</tr>
</table>