if (dobMonth.Text == String.Empty || !Int32.TryParse(dobMonth.Text, out intParsed)) { valid = false; dobMonth.CssClass = "error"; ErrDOB.Visible = true; } else { } <div><label>Date of Birth:<span class="req-field">*</span></label></div> <div><span><asp:TextBox ID="txtDOBDay" Text="DD" MaxLength="2" runat="server" /></span></div> <div><span><asp:TextBox ID="txtDOBMonth" Text="MM" MaxLength="2" runat="server" /></span></div> <div><span><asp:TextBox ID="txtDOBYear" Text="YYYY" MaxLength="4" runat="server" /></span></div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)