Ejemplo n.º 1
0
        private void ShowLCOrderGridByBuyer()
        {
            string ocode   = ((SessionUser)Session["SessionUser"]).OCode;
            int    BuyerId = Convert.ToInt32(ddlS_Buyer.SelectedValue);
            var    result  = masterBLL.GetLCOrderGridByBuyer(ocode, BuyerId);

            if (result.Count > 0)
            {
                grdorder.DataSource = result.ToList();
                grdorder.DataBind();
            }
            else
            {
                ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "func('No Data Found With This Buyer')", true);
            }
        }