培养良好的习惯,每天一点一滴的进步,终将会有收获。
DataTable dt2 = _AdvertisementBLL.GetAdByCode(_ad); object[] ltl = new object[] { ltlLeftAd1, ltlLeftAd2, ltlLeftAd3, ltlLeftAd4, ltlLeftAd5, ltlLeftAd6 }; for (int i = 0; i < dt2.Rows.Count; i++) { DataRow dr2 = dt2.Rows[i]; ((Literal)ltl[i]).Text = "<a href="\" mce_href="\""" + dr2["ad_url"].ToString() + "\" target=\"_blank\"><img src="\" mce_src="\""" + dr2["ad_path"].ToString() + "\" alt=\"\" /></a>"; }