Esempio n. 1
0
    private void fillRoomType()
    {
        string      Error = "";
        DBHotelType obj   = new DBHotelType();
        DataTable   table = obj.getAllRoomType(ref Error);

        GridViewRoomType.DataSource = table;
        GridViewRoomType.DataBind();
    }
Esempio n. 2
0
    private void fillRoomType()
    {
        string      Error   = "";
        DBHotelType typeObj = new DBHotelType();
        DataTable   table   = typeObj.getAllRoomType(ref Error);

        DropDownListRoomType.DataSource     = table;
        DropDownListRoomType.DataTextField  = "RoomTypeName";
        DropDownListRoomType.DataValueField = "RoomTypeID";
        DropDownListRoomType.DataBind();
    }