I am trying to ensure that a textbox has at least one number in it with validation in Visual Studio on an ASP.Net webpage. I have gotten it so that the form must allow at least one number in it, however, it also has to have at least 1 alpha character and I would like to allow the user to have the option of only using numbers if they want. I have tried numerous validation input statements but haven't found a way to make it work yet. Thanks for any help you can provide, I am new to this topic and any help you can provide is appreciated.
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPassWord" ErrorMessage="Password Must Have a Number" ForeColor="#FF3300" ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{1,99})$"></asp:RegularExpressionValidator>