Adapter, VS 2008, .NET 3.5
HelloWorld App.
What's the recommended best practice for setting the LLBLGenProDataSource2 's Adapter's ConnectionString?
Currently I do something like this:
protected void Page_Load(object sender, EventArgs e)
{
if(!this.IsPostBack)
{
mainBinder.AdapterToUse.ConnectionString = userConnectionString;
}
}
Can it be set some way in the Global.ascx perhaps?
I could also just create a class which inherits from LLBLGenProDataSource2 and knows how to get its connectionstring.
Ian