you can define your own ConnectionString. for example you can define a class to present your general variables:
Code:
public class MyVariables
{
public const string ConnectionString = "Data Source=<your server>; Initial Catalog=<your database name>";
}
and then use:
Code:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
SelectCommand="SELECT [CompanyName] FROM [Customers]"
ConnectionString="<%=MyVariables.ConnectionString %>">
</asp:SqlDataSource>