"景先生毕设|www.jxszl.com

C# Campaign类代码示例

2023-12-29 17:39编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中Campaign类的典型用法代码示例。如果您正苦于以下问题:C#Campaign类的具体用法?C#Campaign怎么用?C#Campaign使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:ShowCampaignTable /// ///selectthetabletoshowfromthedbandbuildthetableinthepage /// protectedvoidShowCampaignTable() { Campaigncam=newCampaign(); Listcampaigns=cam.GetCampaignList(email); foreach(Campaigncincampaigns) { HtmlTableRowtr=newHtmlTableRow(); HtmlTableCelltc=newHtmlTableCell(); HtmlTableCelltc1=newHtmlTableCell(); HtmlTableCelltc2=newHtmlTableCell(); HtmlTableCelltc3=newHtmlTableCell(); HtmlTableCelltc4=newHtmlTableCell(); HtmlTableCelltc5=newHtmlTableCell(); tc.InnerHtml=c.Name; tc1.InnerHtml=c.DateCreated.ToString(); tc2.InnerHtml=c.Id.ToString(); tc3.InnerHtml=c.Voucher; tc4.InnerHtml=c.ShareCount.ToString(); if(c.IsActive==true) tc5.InnerHtml="פעיל"; else tc5.InnerHtml="לאפעיל"; tr.Cells.Add(tc); tr.Cells.Add(tc1); tr.Cells.Add(tc2); tr.Cells.Add(tc3); tr.Cells.Add(tc4); tr.Cells.Add(tc5); campaignsData.Controls.Add(tr); } }
原文链接:http://www.jxszl.com/biancheng/C/556660.html