based on some variable, I want to choose the datacontext from four possible datacontexts (of different types, of course) in a master page and then use it in nested master pages. Is this possible?
Thanks,
Ondrej
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.
Not sure whether this is work for you.
But I think you can change the
connectiondynamically to yourdatacontext.You can have a look at Dynamic connection for LINQ to SQL DataContext and Linq to Sql – Set connection string dynamically based on environment variable