Example #1
0
 protected void button_filter_Close(object sender, EventArgs e)
 {
     FiltrTable.Visible = false;
     OtdelenList.DataBind();
     RoomList.DataBind();
     PersonList.DataBind();
 }
        protected void InitializeList()
        {
            string        sql = "select MRName from tbMeetingRoom where MRStatus = 'open'";
            SqlConnection con = new SqlConnection(connStr);

            con.Open();
            SqlDataAdapter sda = new SqlDataAdapter(sql, con);
            DataSet        ds  = new DataSet();

            sda.Fill(ds, "MRName");
            RoomList.DataSource = ds.Tables["MRName"].DefaultView;
            RoomList.DataBind();
            con.Close();
        }