Which is the best implementation??

In ASP.NET I want to create a form for authenticating a user to enter in a
local intranet site.
I want the user to have the option of selecting two different authentication
modes.
The first using windows authentication form where the user will be
authenticated through his current
login username. (in that case the user won't have to enter any usr/pwd info
at the corresponding form fields)
The second using database authentication where the user should enter a
username-password which will be
authenticated through SQL Server.
Imagine like the way sql server authenticates a user when opening query
analyzer where a dialog opens
and prompts the user to choose windows or sql server authentication.
One more thing is that at the login form the user should choose from a
dropdownlist which database to use.
I have created two databases, one called 'development' and one called
'production'. Both databases contain the
same tables but the data stored are different.

How can I put all these together? Which is the best implementation?
Can Web.Config handle all these together (both types of authentication and
database selection) ?

Advertisements

The web.config file only handles one type of authentication at a time. Hth.

Kind regards,
Nikander & Margriet Bruggeman

"Stelios Skiathitis" wrote:
> In ASP.NET I want to create a form for authenticating a user to enter in a
> local intranet site.
> I want the user to have the option of selecting two different authentication
> modes.
> The first using windows authentication form where the user will be
> authenticated through his current
> login username. (in that case the user won't have to enter any usr/pwd info
> at the corresponding form fields)
> The second using database authentication where the user should enter a
> username-password which will be
> authenticated through SQL Server.
> Imagine like the way sql server authenticates a user when opening query
> analyzer where a dialog opens
> and prompts the user to choose windows or sql server authentication.
> One more thing is that at the login form the user should choose from a
> dropdownlist which database to use.
> I have created two databases, one called 'development' and one called
> 'production'. Both databases contain the
> same tables but the data stored are different.
>
> How can I put all these together? Which is the best implementation?
> Can Web.Config handle all these together (both types of authentication and
> database selection) ?
>
> Thanks
> Stelios Skiathitis
>
>
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!