0

Hello. as I am new to coding , I couldnt understand how to create a login page without registration and without a database in ASP.NET & C#.net. i would like to write the code for only 1 user and the username and password must be in the code not in the database table. hoping for a reply. plz to help

Edited by jeripotula

3
Contributors
2
Replies
12
Views
3 Years
Discussion Span
Last Post by glennferrie
0

Hi, if you dont want to use database then you need to store your user name and password on web.config file as application settings. Of course you can store them as hardcoded strings on your code but this is not a good practice.

After you decided where to store your credentials you need to implement forms authentication for you application. You can find lots of samples on Internet

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.