View Code
protected void Page_Load(object sender EventArgs e)
{
DataTable dataTable = SqlDataSourceEnumeratorInstanceGetDataSources();
foreach (DataRow dr in dataTableRows)
{
if (stringIsNullOrEmpty(dr["InstanceName"]ToString()))
thisDropDownListInstanceItemsAdd(stringConcat(dr["ServerName"]));
else
thisDropDownListInstanceItemsAdd(stringConcat(dr["ServerName"] "" dr["InstanceName"]));
}
}