I have been doing this with VB.Net for quite a while and NO problems. I
tried doing the same thingwith csharp and my Visual DataAdapter bomb when I
go back to the page. My code is as follows:
string strCRMUpdate = ini.ReadString("CRMCredentials", "CRMUpdate", "");
string strDefaultDB = ini.ReadString("CRMCredentials", "DefaultDB",
"Development");
this.ConnSQL.ConnectionString = "workstation id=M1;packet size=4096;user
id=sa;data source=MyServer;persist securi" +
"ty info=True;initial catalog=MyDB;password=mypass" +
"";
if (strDefaultDB == "Production")
{
this.ConnSQL.ConnectionString = strCRMUpdate;
}
then I get this error on the page:
An Error occured loading the document.