protected void Page_Load(object sender, EventArgs e)
        {
            InventoryLogic i = new InventoryLogic();

            if (!IsPostBack)
            {
//-------loading the dropdown list with catagoryName--------------------------------------------------------------------//

                cList = InventoryLogic.GetCatalogue();
                CatalogueCategory cat = new CatalogueCategory();
                cat.CatalogueName = "All";
                cat.CategoryID    = "All";
                cList.Add(cat);

                DdlCatagory.DataTextField  = "CatalogueName";
                DdlCatagory.DataValueField = "CatalogueName";

                DdlCatagory.DataSource = cList;
                DdlCatagory.DataBind();
                ControlVisibleFalse();

//-----------------Loads all inventory items when the page loads for the first time------------------------------------//
                GridBind();
                DdlCatagory.SelectedValue = "All";
            }
        }
 public void Init()
 {
     MyCatalogueCategory = new CatalogueCategory();
 }