jquery - Issue in password field validation asp.net C# -
i have make validation password. works fine if add runat=server password validation not work.and when remove runat server works fine.
my code as:
<input value="" runat="server" class="validate[required] text-input" type="password" required pattern="(?=.*\d)(?=.*[a-z])(?=.*[a-z]).{6,}" name="password" id="password" /> <input value="" runat="server" class="validate[required,equals[password]] text-input" type="password" name="password2" id="password2" />
any on topic appreciated.
you have taken normal html tag telling act server side control i,e runat="server".normal html control not work server side control,so please take asp.net controls , write required code.
<asp:textbox runat="server"/>
Comments
Post a Comment