protected void Clear(object sender, EventArgs e) { EmployeeID.Text = ""; FirstName.Text = ""; LastName.Text = ""; DateHired.Text = ""; ReleaseDate.Text = ""; PositionList.ClearSelection(); ProgramList.ClearSelection(); LoginID.Text = ""; }
public void refreshPositions(string posiOfWhat) { this.PositionList.Rows.Clear(); List <object>[] rs; string[] columns = { "strPosiCode", "strPosiName" }; rs = dbConnect.Select("Select * from tblPosition where strPosiDepCode = '" + posiOfWhat + "' and boolPosiIsDel = false;", columns); for (int i = 0; i < rs[0].Count; i++) { // posi code(hidden) posi name this.PositionList.Rows.Add(rs[0].ElementAt(i).ToString(), rs[1].ElementAt(i).ToString()); } //clear selection PositionList.ClearSelection(); }