StrataFrame Forum

Web Forms Connection String

http://forum.strataframe.net/Topic32443.aspx

By Ross L Rooker, Sr.(1) - 2/21/2014

I have this defined in the Global.asax in Application_Start method:

DataLayer.DataSources.Add(new SqlDataSourceItem("", "server=111.111.111.111;User ID=xxxxxxxx;Password=xxxxxxxx;database=XXXdata"));

My question is how do I access this connection string value if required in a form within the web application.
By Ross L Rooker, Sr.(1) - 2/22/2014

Figured it out:




MicroFour.StrataFrame.Data.DataLayer.DataSources[0].ConnectionString.ToString()