示例#1
0
    private void BindLatestMembers()
    {
        //int cnt = 0;
        SedogoNewFun objSNFun = new SedogoNewFun();
        DataTable dtAllUsrs = new DataTable();
        dtAllUsrs = objSNFun.GetAllEnableUserDetails();

        if (dtAllUsrs.Rows.Count > 0)
        {
            DataTable dt = dtAllUsrs.Copy();
            dlMember.DataSource = dtAllUsrs;
            dlMember.DataBind();

            //for (cnt = 0; cnt < dtAllUsrs.Rows.Count; cnt++)
            //{
            //    if (Convert.ToString(dtAllUsrs.Rows[cnt]["gcount"]) != null && Convert.ToString(dtAllUsrs.Rows[cnt]["gcount"]) != "")
            //    {
            //        TGoals = TGoals + Convert.ToInt64(dtAllUsrs.Rows[cnt]["gcount"]);
            //    }
            //}

            TGoals = Convert.ToInt64(dtAllUsrs.Rows[0]["mcount"]);
        }
        else
        {
            TGoals = 0;
            dlMember.DataSource = dtAllUsrs;
            dlMember.DataBind();
        }
    }
示例#2
0
    //===============================================================
    // Function: ShowGoalPics
    //===============================================================
    private void ShowGoalPics()
    {
        Boolean showPrivate = false;
        if( userID == loggedInUserID )
        {
            showPrivate = true;
        }

        SedogoNewFun objSNFun = new SedogoNewFun();
        DataTable dtAllUsrs = new DataTable();
        dtAllUsrs = objSNFun.GetProfileGoalPicsDetails(userID, showPrivate);

        if (dtAllUsrs.Rows.Count > 0)
        {
            DataTable dt = dtAllUsrs.Copy();
            dlMember.DataSource = dtAllUsrs;
            dlMember.DataBind();
        }
        else
        {
            dlMember.DataSource = dtAllUsrs;
            dlMember.DataBind();
        }
    }
示例#3
0
    private void BindLatestMembers()
    {
        var objSnFun = new SedogoNewFun();
        var dtAllUsrs = objSnFun.GetAllEnableUserDetails();

        if (dtAllUsrs.Rows.Count > 0)
        {
            DataTable dt = dtAllUsrs.Copy();
            dlMember.DataSource = dtAllUsrs;
            dlMember.DataBind();

            TGoals = Convert.ToInt64(dtAllUsrs.Rows[0]["mcount"]);
        }
        else
        {
            TGoals = 0;
            dlMember.DataSource = dtAllUsrs;
            dlMember.DataBind();
        }
    }