Why this code allows user do not enter any text? AFAIK +
means One or more
.
<asp:TextBox ID="myTextBox" runat="server" MaxLength="9" />
<asp:RegularExpressionValidator runat="server"
ControlToValidate="myTextBox"
ValidationExpression="\d+"
ErrorMessage="Error!" />
I want user was able to enter only 9 digits. And this field is required. How can I do that?