// Definition BindDropRegion() Function , To Bind Drop Down drpRegion
    public void BindDropRegion()
    {
        // Bind Drop Down Region,By Calling Function Get_All() via objRegion Object and assign to collection colRegion
        //colRegion = objRegion.Get_All();
        //drpRegion.DataTextField = "regionname";
        //drpRegion.DataValueField = "regionid";
        //drpRegion.DataSource = colRegion;
        //drpRegion.DataBind();
        //// Declare List Item item and add text ALL and value 0 to it and add to drpRegion Drop Down
        //ListItem item = new ListItem();
        //item.Text = "All";
        //item.Value = "0";
        //drpRegion.Items.Add(item);
        //drpRegion.SelectedValue = "0";

        colCustomer              = objCustomer.Get_All();
        drpRegion.DataTextField  = "Customer_Name";
        drpRegion.DataValueField = "custid";
        drpRegion.DataSource     = colCustomer;
        drpRegion.DataBind();
        ListItem item = new ListItem();

        item.Text  = "------------Select------------";
        item.Value = "0";
        drpRegion.Items.Add(item);
        drpRegion.SelectedValue = "0";
    }
예제 #2
0
    public void BindGrid()
    {
        BLLCollection <Customer_mst> col = new BLLCollection <Customer_mst>();

        col = ObjCustomer.Get_All();
        Customergrdvw.DataSource = col;
        Customergrdvw.DataBind();
        clear();
    }
예제 #3
0
    protected void BindDropDownRegion()
    {
        colCustomer              = objCust.Get_All();
        drpRegion.DataTextField  = "Customer_Name";
        drpRegion.DataValueField = "custid";
        drpRegion.DataSource     = colCustomer;
        drpRegion.DataBind();
        ListItem item = new ListItem();

        item.Text  = "------------Select------------";
        item.Value = "0";
        drpRegion.Items.Add(item);
        drpRegion.SelectedValue = "0";
    }
예제 #4
0
    // Definition of BindDropDown()

    public void BindDropCustomer()
    {
        colCust = objCustomer.Get_All();
        drpCustomer.DataTextField  = "Customer_Name";
        drpCustomer.DataValueField = "CustId";
        drpCustomer.DataSource     = colCust;
        drpCustomer.DataBind();
        ListItem item = new ListItem();

        item.Text  = "------------Select-------------";
        item.Value = "0";
        drpCustomer.Items.Add(item);
        drpCustomer.SelectedValue = "0";
    }
    //protected void BindDropSite()
    //{
    //    string userName = "";
    //    MembershipUser User = Membership.GetUser();
    //    if (User != null)
    //    {
    //        userName = User.UserName.ToString();
    //    }


    //    if (userName != "")
    //    {
    //        int userid;
    //        objOrganization = objOrganization.Get_Organization();
    //        objUser = objUser.Get_UserLogin_By_UserName(userName, objOrganization.Orgid);
    //        if (objUser.Userid != 0)
    //        {
    //          userid = objUser.Userid;
    //          colUserToSite = ObjUserToSite.Get_All_By_userid(userid);
    public void BindDropCustomer()
    {
        colCustomer = objCustomer.Get_All();
        drpCustomer.DataTextField  = "Customer_Name";
        drpCustomer.DataValueField = "custid";
        drpCustomer.DataSource     = colCustomer;
        drpCustomer.DataBind();
        drpCustomer.Visible = false;
        //ListItem item = new ListItem();
        //item.Text = "------------Select------------";
        //item.Value = "0";
        //drpCustomer.Items.Add(item);
        //drpCustomer.SelectedValue = "0";
    }