Hello, I have this application that would let a user register (I used an ASP.NET control for that one), and then log in (I do not use ASP.NET control for the login, I am making it myself). When an user register, I am sending their data to an Oracle database, so now when someone tries to log in, I want to be able to check whether they are registered or not, i.e. whether the database contains that particular username and password or not. But I do not want to have the data in the database shown in any control, so I have no idea how would I check that. If I'm using a Listbox e.g., I would retrieve the data into the listbox, and then check whether the entered text in the UsernameTextbox is equal to some data in the listbox or not. Without that kind of controls, I do not know how to check for the entered data into the database. Is there any way of checking via the SqlDataSource or something ? Thank you, greetings.
robertmacedonia
0
Junior Poster in Training
Recommended Answers
Jump to PostWhat is the reasoning behind not using the built-in ASP.net login control since you are already using their register wizard control. That is one of the benefits of .Net 2.0 and beyond are the built-in membership management controls.
Jump to PostI hate those built in controls too. First you will need to get the back. Change SqlDataReader to OracleDataReader, etc. Swap out Sql* with Oracle*
private static DataTable LookupUser(string Username) { /* * The reason I return a datatable here is so you can also bring back …
All 6 Replies
textbox
0
Light Poster
robertmacedonia
0
Junior Poster in Training
sknake
1,622
Senior Poster
Featured Poster
anuj_sharma
-3
Junior Poster
pin8marian
0
Newbie Poster
robertmacedonia
0
Junior Poster in Training
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.