ChatterBank59 mins ago
asp
1 Answers
On an ASP page
How do you use authorisation file/webconfig if you want a SQL query to include the information (user's ID and DOB) in the authorisation file.
any ideas will be great
Answers
Best Answer
No best answer has yet been selected by keys. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.I assume you mean ASP.NET. ASP didn't use web.config.
Article on web.config authorization :
http://support.microsoft.com/kb/316871
Once a user is logged, you can use Context.User.Identity.Name to get the user name to do a SQL query to get the DoB (I assume the DoB would be held in a database).
Article on web.config authorization :
http://support.microsoft.com/kb/316871
Once a user is logged, you can use Context.User.Identity.Name to get the user name to do a SQL query to get the DoB (I assume the DoB would be held in a database).