⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adshow.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -