Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi,all

i am working on form based authentication (forms authentication);

my requirements:

1). This programming deals with accessing a database and web services. Use Forms authentication in ASP.Net.

2).Ability to create new users with username and password to access the application. Restrict usernames to a length of up to 5 accepting only A-Z, a-z, or 0-9.
i am not able to achieve this requirement

i am using this type of sample code in web.config file ,

<pre lang="xml"><authentication mode="Forms">
      <forms loginUrl="~/Login.aspx"  protection="All" timeout="30" >
        <credentials passwordFormat ="Clear">
          <user name ="qwerty"  password="qwerty"/>
          <user name ="zxcv"  password="zxcv"/>
         
         </credentials>
      </forms>
        </authentication>


Posted
Updated 28-Jun-11 0:18am
v2
Comments
Toniyo Jackson 28-Jun-11 6:09am    
Okay. Go ahead!!!
Sergey Alexandrovich Kryukov 28-Jun-11 13:54pm    
Agree! Perhaps there a some problems? I don't know about them. This is not a question.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900