Exemple #1
0
    /// <summary>
    /// Returns string with poll sites.
    /// </summary>
    private string GetPollSites()
    {
        //DataSet ds = PollSiteInfoProvider.GetPollSites("SiteID", "PollID = " + pollId, null, 0, null);
        DataSet ds = PollInfoProvider.GetPollSites(pollId, null, null, -1, "CMS_Site.SiteID");

        if (!DataHelper.DataSourceIsEmpty(ds))
        {
            return(TextHelper.Join(";", DataHelper.GetStringValues(ds.Tables[0], "SiteID")));
        }

        return(String.Empty);
    }