I want to develop a login page ,i want that admin username & password to be saved in asp file suppose FrmLoginDetails.asp. Username - sonia
Password - citm123
When the user logins,i want that his entered usernme & password to be compared with the that are stored in file FrmLoginDetails.asp..

Can somebody tell me how to store the details in file & retrive from that file!

Recommended Answers

All 2 Replies

You shouldn't be using .asp pages to store login credentials, and you probably shouldn't be opening the page source for your project at runtime in a web environment.

Why not just use a database? You could also hard-code in the user information in to the program (another bad approach).

I agree with sknake safest place is in the database, if you don't have one why not use ASP.NET forms authentication and put the login details in the web.config file?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.