public void InitControl() { Dictionary <string, string> list = new Dictionary <string, string>(); list.Add("ALL", "ALL"); list.Add("Windows", "Windows"); list.Add("Web", "Web"); list.Add("SQL", "SQL"); string MyServerList = ""; DB.Cloud cloud = new DB.Cloud(); cloud.SetCmd("Cloud"); cloud.get_ServerList(numMember); foreach (DataRow dr in cloud.dsReturn.Tables[0].Rows) { list.Add(dr["ServerNum"].ToString(), dr["DIsPlayName"].ToString()); } ddl_Server.DataSource = list; ddl_Server.DataValueField = "Key"; ddl_Server.DataTextField = "Value"; ddl_Server.DataBind(); }