private void fillHotel() { string Error = ""; DBHotel hotelObj = new DBHotel(); DataTable table = hotelObj.getAllHotelData(ref Error); DataListHotel.DataSource = table; DataListHotel.DataBind(); }
private void fillHotel() { string Error = ""; DBHotel typeObj = new DBHotel(); DataTable table = typeObj.getAllHotelData(ref Error); DropDownListHotel.DataSource = table; DropDownListHotel.DataTextField = "HotelName"; DropDownListHotel.DataValueField = "HotelID"; DropDownListHotel.DataBind(); }