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
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