I have a membership table, which includes
MemberID(int),
Username(varchar16),
Password... etc.
How would I get the MemberID if I know only the username? I’m using SQL ASP.Net C#.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you know the value of the
username. Use it as the condition in your where clause. I assumed here thatusernameis unique or else you will have all IDs of the members that matches to the specified username.try this, since you are using ADO.Net