adshow.cs

来自「动易SiteFactory&#8482 网上商店系统1.0源代码」· CS 代码 · 共 35 行

CS
35
字号
namespace PowerEasy.WebSite.AD
{
    using PowerEasy.AD;
    using PowerEasy.Model.AD;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class ADShow : BasePage
    {
        protected HtmlForm form1;
        protected Label LabAdShow;

        protected void Page_Load(object sender, EventArgs e)
        {
            AdvertisementInfo advertisementById = Advertisement.GetAdvertisementById(BasePage.RequestInt32("AdId"), false);
            if (!advertisementById.IsNull)
            {
                this.LabAdShow.Text = Advertisement.GetAdContent(advertisementById);
                if (advertisementById.CountClick)
                {
                    advertisementById.Clicks++;
                }
                if (advertisementById.CountView)
                {
                    advertisementById.Views++;
                }
                Advertisement.Update(advertisementById);
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?