Ejemplo n.º 1
0
    private void fillHotel()
    {
        string    Error    = "";
        DBHotel   hotelObj = new DBHotel();
        DataTable table    = hotelObj.getAllHotelData(ref Error);

        DataListHotel.DataSource = table;
        DataListHotel.DataBind();
    }
Ejemplo n.º 2
0
    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();
    }