private void aroomType_SelectedIndexChanged(object sender, EventArgs e) { roomsConn roomsConn = new roomsConn(); String selectedLabNme = aroomType.Text.ToString(); String selectedSessionType = sessionType.Text.ToString(); atags.DataSource = roomsConn.getSessionType(selectedLabNme, selectedSessionType); }
private void asubjectCode_SelectedIndexChanged(object sender, EventArgs e) { roomsConn roomsConn = new roomsConn(); String getSelectedSubject = asubjectCode.Text.ToString(); String getSelectedSession = sessionType.Text.ToString(); atags.DataSource = roomsConn.getSessionType(getSelectedSubject, getSelectedSession); // atag2.DataSource = roomsConn.getTag2Type(getSelectedSubject, getSelectedSession); String selectedSessionType = sessionType.Text.ToString(); String selectedSubject = asubjectCode.Text.ToString(); atags.DataSource = roomsConn.getSessionTypeTag(selectedSessionType, selectedSubject, aroomType.Text.ToString()); }