I want to use the new LinqDataSource in one of my .NET 3.5 test applications. But I need the application to grab the connection information from the Web.config. My DAL is separate from the ASP.NET application so for obvious reasons putting the connectionstring in the DataContext is out of the question.
But how do I provide the LinqDataSource with a datacontext, that is initialized with the correct connectionstring?. I have tried making a wrapper class that encapsulates my DataContext and provides it with the right connection, also I have tried making a property and method in one of my manager classes that returns an initialized DataContext. But it does not seem to work.
Please help :) It must be possible to use the LinqDataSource without having the connection info hardwired into the DataContext!
--
Christian