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 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 …
Jump to Postuse data set, make a store procedure and drag into the data set .The procedure take the all user date end results put into the datatable.Next, compare all the results whit what user insert.
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.