开发者

Cant login in asp.net form as previously registered user

I used the Login control in my ASP.NET form.A database was created- ASPNETDB. But once I create a user and then execute the form next time,I cant login, i.e., I've to register as a new user e开发者_如何学Pythonverytime I simulate the web form. The code cant retrieve my previously stored login id and password.How can I fix it?


The problem could be that the database file is been copied to the output directory everytime you run your application and overriding the previous copied file that contains the registration data.

If that was the problem, you can solve it by change the database file's Copy To Output Directory property value from always copy to copy if newer.


Solution #1: Under the "project" tab in Visual Studio, go to ASP.NET configuration. Make sure that the "active" check box is checked, under security, manage users (ASP.NET default login tables).

Solution #2: Use your login tables.

Solution #3: Still searching for it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜