Develop a solution to validate the given username and the password in Csharp program

Recommended Answers

what code are you having a problem with?

Jump to Post

All 2 Replies

what code are you having a problem with?

We wont do your home work for you but we can get you started

your going to need a place to store the values, assuming you dont want to use a data base
your should read the save usernames and passworks from a flat file into the dictionary

Dictionary<string, string> UserPassValidation = new dictionary<string, string>

then from there
use the username as a key and a password as the checking value
if they match login
else return an exception

Be a part of the DaniWeb community

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