Somethings like :
if(Request["connectionToUse"] + "" == "constr1")
// use a connection string 1
else
// use a connection string 2
is it possible on .NET?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT: This is probably a very bad idea, as said by Oded, but if you really want to then :
modify the webconfig based on the request parameter look at the following example: