May 27, 2010 04:31 PM|MayankSri|LINK
Could you please elaborate your problem a little?
I think you are trying to set a specific connection string based on the environment, is that the case?
The best place to keep connection string would be the web config. Please refer to this article -
Also, for deployment purpose, you should maintain different web configs for different environments.
In case you are using .NET 4.0 / Visual Studio 2010, the studio can do some pretty cool stuff for you in this regard.