Пример #1
0
    private void bindData(int lotteryID)
    {
        DAL.Tables.T_Lotteries dt = new DAL.Tables.T_Lotteries();
        DataTable dtAgreement     = dt.Open("Agreement", "ID = " + lotteryID + "", "");

        if (dtAgreement != null && dtAgreement.Rows.Count > 0)
        {
            string aggrement = dtAgreement.Rows[0]["Agreement"].ToString();
            this.lbAgreement.Text = aggrement.Replace("[SiteName]", _Site.Name).Replace("[SiteUrl]", _Site.Url);
        }
    }