Greetings y'all,
Before anyone else says it, I will. I am a noob at asp.net. This should be the simplest of topics, but it has got me lost for the last week or two.
I'm prototyping a custom login site. I am using ASP.net 2.0, and SQLServer 2005. In the SQLServer, I have some stored procedures to save (sp_insertCredential) usernames and passwords encrypted and the get procedure (sp_getCredential) to return an id if the correct username and password are given. All is simple enough - the SQLServer is doing it's job fine.
The 64 gazillion dollar question of the day is, how to I get my asp website to utilize these procedures and maintain the session?
I have experimented with the asp:sqldatasource to use the procedures and then populate a field with the ID just fine, but what about starting the session and storing that id value? After googling, I have found some topics which advocate 20some lines of VB or C#, but have come up short on ASP.NET.
A point in the right direction would be great!
"If it's stupid but works, it isn't stupid."
-Murphy's Military Laws
Before anyone else says it, I will. I am a noob at asp.net. This should be the simplest of topics, but it has got me lost for the last week or two.
I'm prototyping a custom login site. I am using ASP.net 2.0, and SQLServer 2005. In the SQLServer, I have some stored procedures to save (sp_insertCredential) usernames and passwords encrypted and the get procedure (sp_getCredential) to return an id if the correct username and password are given. All is simple enough - the SQLServer is doing it's job fine.
The 64 gazillion dollar question of the day is, how to I get my asp website to utilize these procedures and maintain the session?
I have experimented with the asp:sqldatasource to use the procedures and then populate a field with the ID just fine, but what about starting the session and storing that id value? After googling, I have found some topics which advocate 20some lines of VB or C#, but have come up short on ASP.NET.
A point in the right direction would be great!
"If it's stupid but works, it isn't stupid."
-Murphy's Military Laws