Windows Authenication

Using: VS 2008 - SQL 2008 - VB

Windows Authentication - [url removed, login to view] (Sql 2008)

I have two questions that needs answers:

1. I need to change the current role of a user after he has logged in. ie: I have a user who is in three roles: Admin - Purchasing - IT. When he opens the application he is logged in automatically <authentication mode="Windows">. All is fine so far. I have a page [url removed, login to view], which populates a droplist with the roles that the current user belongs to. Still fine so far. Page [url removed, login to view]

Protected Sub btnChange_Click(ByVal sender As Object, ByVal e As [url removed, login to view]) Handles [url removed, login to view]

' save selected role to session

[url removed, login to view] = [url removed, login to view]

The above works if using Forms Authentication but NOT using windows authentication. I get an Error: Name'UserSession' is not declared.

2. I'm using the aspnetdb on SQL2008. How can I or where do I add a field (Active or AllowLogin)

so a user can be denied access, using Windows Authentication. More specifically, since I'm using Windows Authentication, where or how do I intervene in the login process.

Please feel free to ask questions.


Skills: .NET, SQL

See more: aspx login, 16 handles, windows do, net windows forms application, windows 2008 admin, net object error, windows 2008 application error, free protected, using session aspx, login process, change access sql, windows authentication, access windows forms, access denied, windows error, purchasing system, sql questions answers, change windows, access forms net, sql 2008 questions, sender name, net user session, windows user, login authentication, net login system

About the Employer:
( 23 reviews ) Washington, United States

Project ID: #1108189

11 freelancers are bidding on average $156 for this job


Hi, I think I can do it:-)! Best regards, netcoder:-)

$55 USD in 5 days
(88 Reviews)

I can do this job. Please check PMB.

$200 USD in 3 days
(4 Reviews)

I am C# programmer, not VB thus can help explaining what would done and how implement this. Here is an answer (free of charge): 1. In authorize event create new fixed Windows identity and add necessary SQL servers rol More

$150 USD in 5 days
(3 Reviews)

Hi Kindly Check your PMB

$170 USD in 2 days
(2 Reviews)

I've had many years experience with [url removed, login to view] and SQL Server. I can help you with your task. Thanks for considering my bid.

$215 USD in 5 days
(1 Review)

we can do this project.

$250 USD in 1 day
(0 Reviews)

I can work for you.

$200 USD in 4 days
(0 Reviews)

i can do this project easily. i am expert in [url removed, login to view] and sql server and have prior experience in doing this kinda project.

$150 USD in 2 days
(0 Reviews)

UK based Software Developer with over 5 years of commercial development experience. Have dealt with both standalone, single implementation solutions as well as large multi-tiered web applications. Please see PM for More

$80 USD in 3 days
(0 Reviews)

Hi, we have worked in [url removed, login to view] membership and can easily complete this project

$100 USD in 3 days
(0 Reviews)

we are expertise in [url removed, login to view] and handling all the web and windows appln........

$150 USD in 5 days
(0 Reviews)