473,320 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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) ?

Thanks
Stelios Skiathitis
Nov 19 '05 #1
1 1203
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

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: John Bentley | last post by:
Note this is crossposted to comp.lang.javacript and microsoft.public.dotnet.scripting. After some Googling and FAQing my understanding of these terms is, crudely: Javascript (3 different...
5
by: martin | last post by:
Hi, Is there any best practice guidelines or examples for threadsafe logging? I have to write an auditlogging class for a website. The auditlog will be stored in files on the local filesystem. A...
1
by: Tom Anderson | last post by:
Subtitle: the war on temporary objects continues! The page on python performance tips on the python.org wiki (<http://wiki.python.org/moin/PythonSpeed/PerformanceTips>) suggests the following...
19
by: Geetesh | last post by:
Recently i saw a code in which there was a structer defination similar as bellow: struct foo { int dummy1; int dummy2; int last }; In application the above array is always allocated at...
5
by: Keith Patrick | last post by:
Could someone tell me if it's possible (and if so, how) to call an explicitly-implemented interface method from a subclass? I have a class in which I have to explicity implement some methods, but...
4
by: - - Vivian - - - - - - | last post by:
which best software for work with ASP.NET ? to design page join to programming send your suggestions Vivian
2
by: Damien | last post by:
Hi all, I'm messing around with various signal/slot mechanisms, trying to build something lean and fast. I've used libsigc++, and Sarah Thompson's at sigslot.sourceforge.net, and most of the...
1
by: bizt | last post by:
Hi, I have a process where every so often I refresh a table's data using a setTimeout() .. and when its no longer needed, a clearTimeout(). The following is a simple example of how this is...
11
by: Ian Simpson | last post by:
Hi Everyone, I've been browsing around for solutions to how to have an enum that gives me a name string. Some rather complicated ones can be found on the gamedev forum and Code Project. I am...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.