c# - how to validate username and password valid or not in login control using asp.net -


i have 1 login control in asp.net web application. use following code.

 <asp:login id="login1" runat="server" width="351px" cssclass="login"          failuretext="user name/password incorrect"            enabletheming="true" titletext="login focus/career status viewer"            height="164px" onauthenticate="login1_authenticate" displayrememberme="false"               usernamelabeltext="username:" >         <textboxstyle  cssclass="login-textbox" />         <loginbuttonstyle  cssclass="login-button" />         <validatortextstyle font-names="calibri" />         <titletextstyle  cssclass="login-title"/>     </asp:login> 

i want when type username alone error message produced password required. can tell how can this?? thankx in advance......

you can use required field validator.

 <asp:textbox id="textbox1" runat="server"></asp:textbox>  <asp:requiredfieldvalidator controltovalidate="textbox1" id="requiredfieldvalidator1" runat="server" errormessage="password required"></asp:requiredfieldvalidator> 

hope if u r using own login control login purpose


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -