Beispiel #1
0
 private void clear()
 {
     trPresi.Visible       = false;
     trSec.Visible         = false;
     chkIfOtherSec.Checked = false;
     chkIfOther.Checked    = false;
     DDLYear.ClearSelection();
     DDLMember.ClearSelection();
     DDLMember0.ClearSelection();
     DDLClubName.ClearSelection();
 }
Beispiel #2
0
    private void BindMembers(int distID)
    {
        // int distID = int.Parse(Session["DistrictClubID"].ToString());
        MembersBll obj = new MembersBll();

        obj.ClubId = distID;
        DataTable dt = new DataTable();

        dt = obj.GetMemberByClubId();
        if (dt.Rows.Count > 0)
        {
            DDLMember.DataTextField  = "name";
            DDLMember.DataValueField = "MemberId";

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

            //DDLMember.Items.Insert(0, "Select");
        }
        else
        {
            DDLMember.ClearSelection();
        }
    }