So im pretty much just messing with c# and sql databases and I created a database with a table that has 2 columns, one for username and one for password and I wanted to know how i would look up the row the username is in and get the corresponding password(cell next to it) so I could compare for a login aspx page
Share
This is a question that is going to take you doing a bit of research. There are a plethora of tutorials on the internet on how to access data. Below I’ve included one way that you can return a single value for you to get started with. You’ll need to include System.Data.SqlClient.
I lifted this example from http://msdn.microsoft.com/en-us/library/eeb84awz(v=vs.80).aspx