protected void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                FBFoodInventoryController controller = new FBFoodInventoryController();
                FBFoodInventoryInfo       item       = new FBFoodInventoryInfo();


                item.ModuleId = this.ModuleId;
                item.PortalId = this.PortalId;

                item.ProductCategory      = txtProductCategory.Text.ToString();
                item.LastModifiedByUserID = this.UserId;
                item.IsActive             = bool.Parse(rblIsActive.SelectedValue.ToString());

                if (txtProductCategoryID.Value.Length > 0)
                {
                    item.ProductCategoryID = Int32.Parse(txtProductCategoryID.Value.ToString());
                    controller.FBProductCategory_Update(item);
                }
                else
                {
                    item.CreatedByUserID = this.UserId;
                    controller.FBProductCategories_Insert(item);
                }
                FillProductCategoryGrid();
                panelGrid.Visible = true;
                panelEdit.Visible = false;

                // Response.Redirect(EditUrl("ProductCategories"));
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }