Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 13th, 2007, 09:00 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login multiple db

Hi all

I have made a web application where I have multiple user databases. On my Default page I have a Dropdownlist and each selection presents a user database. I have a custom membership provider and I could load the Login user control with the appropriate membership provider set. But the ting is: I don't want to set multiple connectionstrings i my web.config, and I don't want to create an application for each db.

I want to get the db name, pwd etc. from a database and then create the connectionstring when the selection has been made or in the LoggingIn event handler. I guess the only solution is to write a class that gets the db name and pwd from the database, decrypt it in some way and create the connectionstring.

I just wonder if anyone has any thoughts on how to do this in a way that doesn't create any security issues.

Best Regards
 
Old January 16th, 2007, 08:18 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What is issue for not creating multiple connectionstring. They are the only string value at all.If u store dbName ,loginName and password in any table of db,u need to each time to fetch that data from table.

Bijgupt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 Blog - Cannot Login Access DB bmoran007 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 November 26th, 2007 10:53 AM
BLOCK MULTIPLE LOGIN dayarprasad Classic ASP Databases 3 July 25th, 2006 11:01 PM
Multiple ADO multiple user login Oracle9i jhay0721 Pro VB Databases 1 April 4th, 2005 11:23 AM
session login with access db surethg Beginning PHP 3 November 19th, 2004 04:34 PM
List of DB login name khautinh SQL Server 2000 2 October 23rd, 2003 03:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.