private void BindControl() { int nReturn = cloud.R_ServerList(MemberNum, "SQL"); DataTable dt = cloud.dsReturn.Tables[0]; ddl_Server.DataSource = dt; ddl_Server.DataTextField = "DisplayName"; ddl_Server.DataValueField = "ServerNum"; ddl_Server.DataBind(); }
private void InitControl() { Dictionary <string, string> list = new Dictionary <string, string>(); list.Add("5", "5min"); list.Add("10", "10min"); list.Add("20", "20min"); list.Add("30", "30min"); list.Add("60", "60min"); ddl_Time.DataSource = list; ddl_Time.DataValueField = "Key"; ddl_Time.DataTextField = "Value"; ddl_Time.DataBind(); list = new Dictionary <string, string>(); for (int i = 0; i <= 24; i++) { list.Add(i.ToString(), i.ToString() + "시"); } ddl_Hour_Start.DataSource = list; ddl_Hour_Start.DataValueField = "Key"; ddl_Hour_Start.DataTextField = "Value"; ddl_Hour_Start.DataBind(); ddl_Hour_End.DataSource = list; ddl_Hour_End.DataValueField = "Key"; ddl_Hour_End.DataTextField = "Value"; ddl_Hour_End.DataBind(); list = new Dictionary <string, string>(); for (int i = 0; i < 60; i++) { list.Add(i.ToString(), i.ToString() + "분"); } ddl_Min_Start.DataSource = list; ddl_Min_Start.DataValueField = "Key"; ddl_Min_Start.DataTextField = "Value"; ddl_Min_Start.DataBind(); ddl_Min_End.DataSource = list; ddl_Min_End.DataValueField = "Key"; ddl_Min_End.DataTextField = "Value"; ddl_Min_End.DataBind(); int nReturn = cloud.R_ServerList(MemberNum, "ALL"); DataTable dt = cloud.dsReturn.Tables[0]; ddl_Server.DataSource = dt; ddl_Server.DataTextField = "DisplayName"; ddl_Server.DataValueField = "ServerNum"; ddl_Server.DataBind(); }