protected void ControlDataBind() { int currentYear = DateTime.Now.Year; ddlIconExpiryYear.Items.Add(new ListItem("", "0")); ddlIconExpiryMonth.Items.Add(new ListItem("", "0")); ddlIconExpiryDay.Items.Add(new ListItem("", "0")); for (int i = currentYear - 10; i < currentYear + 10; i++) { ddlYear.Items.Add(new ListItem(i.ToString(), i.ToString())); ddlIconExpiryYear.Items.Add(new ListItem(i.ToString(), i.ToString())); } for (int i = 1; i <= 12; i++) { ddlMonth.Items.Add(new ListItem(i.ToString("00"), i.ToString("00"))); ddlIconExpiryMonth.Items.Add(new ListItem(i.ToString("00"), i.ToString("00"))); } for (int i = 1; i <= 31; i++) { ddlDay.Items.Add(new ListItem(i.ToString("00"), i.ToString("00"))); ddlIconExpiryDay.Items.Add(new ListItem(i.ToString("00"), i.ToString("00"))); } System.Data.DataTable dataSource = SystemPara.getSystemPara("NewsType"); foreach (System.Data.DataRow row in dataSource.Rows) { this.comType.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } }
protected void ControlDataBind() { System.Data.DataTable dataSource = SystemPara.getSystemPara("CareerType"); foreach (System.Data.DataRow row in dataSource.Rows) { this.comType.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } System.Data.DataTable EducationLevel = SystemPara.getSystemPara("EducationLevel"); foreach (System.Data.DataRow row in EducationLevel.Rows) { this.comQualification.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } System.Data.DataTable Position = SystemPara.getSystemPara("Position"); foreach (System.Data.DataRow row in Position.Rows) { this.txtJobFunction.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } System.Data.DataTable Division = SystemPara.getSystemPara("Division"); foreach (System.Data.DataRow row in Division.Rows) { this.txtDivision.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } System.Data.DataTable Department = SystemPara.getSystemPara("Department"); foreach (System.Data.DataRow row in Department.Rows) { this.txtDepartment.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } System.Data.DataTable EmploymentType = SystemPara.getSystemPara("EmploymentType"); foreach (System.Data.DataRow row in EmploymentType.Rows) { this.txtType.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } }
protected void bindControl() { System.Data.DataTable dataSource = SystemPara.getSystemPara("LinkType"); foreach (System.Data.DataRow row in dataSource.Rows) { comType.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } }
protected void ControlDataBind() { System.Data.DataTable EventType = SystemPara.getSystemPara("SuggestionType"); foreach (System.Data.DataRow row in EventType.Rows) { this.comSuggestionType.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } }
private void ControlDataBind() { txtSerialNo0.Items.Add(new ListItem("All", "0")); System.Data.DataTable dt = SystemPara.getSystemPara("TrainingType", true); foreach (System.Data.DataRow row in dt.Rows) { txtSerialNo0.Items.Add(new ListItem(row["cDescription"].ToString(), row["cDescription"].ToString())); } }
private void ControlDataBind() { System.Data.DataTable dataSource = SystemPara.getSystemPara("TrainingType"); foreach (System.Data.DataRow row in dataSource.Rows) { this.comType.Items.Add(new ListItem(row["Description"].ToString(), row["ID"].ToString())); } formType = new System.Text.StringBuilder(); dataSource = SystemPara.getSystemPara("TrainingFormType"); foreach (System.Data.DataRow row in dataSource.Rows) { formType.Append(string.Format("<option value='{0}'>{1}</option>", row["ID"].ToString(), row["Description"].ToString())); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.setMaxLength(); this.ControlDataBind(); if (!string.IsNullOrEmpty(Request.QueryString["ID"])) { int ID = Convert.ToInt32(Request.QueryString["ID"]); this.mode = "Edit"; this.initCareer(ID); } else { this.mode = "New"; string disclaimer = SystemPara.getSystemPara("Disclaimer", false).Rows[0]["Description"].ToString(); txtDisclaimer.InnerText = disclaimer; } } }