Set Connection String in CS

Topics: Data Access Application Block
May 20, 2008 at 3:53 PM
Edited May 20, 2008 at 3:54 PM
Hi!, i need to set the connection string in my codebehind (c#), is that possible? i don't want get from the web.config or machine.config.

Thank's

Mabc
May 20, 2008 at 5:54 PM
You can create a Database object (actually, an instance of a Database subclass) supplying a connection string in the .ctor; if you're using Database objects yourself it should be enough.

Fernando


mabc wrote:
Hi!, i need to set the connection string in my codebehind (c#), is that possible? i don't want get from the web.config or machine.config.

Thank's

Mabc