Help with Login Problem in ASP.NET

Help with Login Problem in ASP.NET

Old forum URL: forums.lhotka.net/forums/t/3878.aspx


clsanewbie posted on Saturday, November 10, 2007

I'm running into a problem that is just driving me nuts and feel embarrassed to ask since I have searched the board and could not find something along the lines of what I'm trying to do.

I have read Rocky's book and the various postings on the message board to get the login portion to work correctly with the Identity, Principal, setting the global.asx, customize membershipprovider etc etc. It all works with one connectionstring. I am like the few others who have posted I need to handle changing between connection strings at login. I understand to use
Csla.ApplicationContext.ClientContext to store my connectionstring.

I basically changed the login control Layouttemplate to include a drop down and I have a my DSN's stored in the web config file. The form comes up and I can still log in with the one connection string but I want to use my drop down to build the connection string.

My problem is I can't get the dropdown selectedvalue to be passed to the membership provider since I want to set the ClientContext["dbname"] to equal the dropdown value and then I have a class that will build the connectionstring and be used throughout the objects.

Am I not allowed to use a layouttemplate or is there a better way to handle setting a Connectionstring if you have more than one connection?

Any tips or websites to study up on this subject will be appreciated. Have a wonderful day.

clsanewbie replied on Sunday, November 11, 2007

Nevermind I got it working and I apologize to everyone for wasting your time. Have a wonderful day.

Copyright (c) Marimer LLC