protected void Page_Load(object sender, EventArgs e)
    {
        lblDeleteMsg.Text = "";
        lblMsg.Text       = "";

        if (!IsPostBack)
        {
            if (!Utils.IsLoggedIn())
            {
                Utils.LogOut();
            }
            else
            {
                // Label lblFormTitle = (Label)this.Master.FindControl("lblFormTitle");
                lblFormTitle.Text = "Product Setup";

                BindProduct();
                imgPhoto.Visible = false;
                BindBrand();
                BindSupplier();
                BindUnit();
                BindColour();
                BindSize();
                cls.BindDropDownList_blankValue(ddlCategory, "CategoryName", "Id", "bindDropdown", "ProductCategory", "where IsActive=1  ORDER BY CategoryName", "CategoryName,Id");
                ddlSubCategory.Items.Insert(0, new ListItem("- Select -", ""));


                //javascript

                txtProductcost.Attributes.Add("onblur", "calculateAllCost();");
            }
        }
    }
Пример #2
0
 protected void BindProduct()
 {
     cls.BindDropDownList_blankValue(ddlProduct, "ProductName", "ID", "bindDropdown", "Product", "where IsActive=1 order by ProductName ASC", "Id,ProductName");
 }
Пример #3
0
 void bindProductCategory()
 {
     cls.BindDropDownList_blankValue(ddlCategory, "CategoryName", "Id", "bindDropdown", "ProductCategory", "where IsActive=1  ORDER BY CategoryName", "CategoryName,Id");
 }
Пример #4
0
 protected void BindProduct(string scid)
 {
     cls.BindDropDownList_blankValue(ddlProduct, "ProductName", "ID", "bindDropdown", "Product", "where IsActive=1 and ProductSubCategoryId ='" + scid + "' order by ProductName ASC", "Id,ProductName");
 }