示例#1
0
    private void BindDesignations(int distID)
    {
        // int distID = int.Parse(Session["DistrictClubID"].ToString());

        BodBll obj = new BodBll();

        obj.ClubId = distID;

        DataTable dt = new DataTable();

        dt = obj.GetBodDesignationListByClubId();

        DDLDesignation.DataTextField  = "designation";
        DDLDesignation.DataValueField = "id";

        DDLDesignation.DataSource = dt;
        DDLDesignation.DataBind();

        // DDLDesignation.Items.Insert(0, "Select");
    }
示例#2
0
    private void SearchGrid(int clubId)
    {
        DataTable dt  = new DataTable();
        BodBll    obj = new BodBll();

        obj.ClubId = clubId;
        dt         = obj.GetBodDesignationListByClubId();
        if (dt.Rows.Count > 0)
        {
            lblMsg.Visible      = false;
            RadGrid1.Visible    = true;
            RadGrid1.DataSource = dt;
            RadGrid1.Rebind();
        }
        else
        {
            lblMsg.Visible   = true;
            RadGrid1.Visible = false;
        }
    }