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

📄 createlabel_other.aspx.cs

📁 最好用的站点内容管理系统 全部源代码都有
💻 CS
字号:
//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class manage_label_createLabel_Other : NetCMS.Web.UI.ManagePage
{
    public string APIID = "0";
    protected void Page_Load(object sender, EventArgs e)
    {
        APIID = SiteID;
        Response.CacheControl = "no-cache";                        //设置页面无缓存
        if (!IsPostBack)
        {
            
        }
        getFreeLabelInfo();
        getfreeJSInfo();
        getsysJSInfo();
        getadsJsInfo();
        getsurveyJSInfo();
        getstatJSInfo();
    }

    /// <summary>
    /// 显示自由JS
    /// </summary>
    /// <returns>显示自由JS</returns>
    /// 编写时间2007-04-28   Code By DengXi
    
    protected void getfreeJSInfo()
    {
        NetCMS.Content.Label lc = new NetCMS.Content.Label();
        DataTable dt = lc.getfreeJSInfo();

        if (dt != null)
        {
            freeJSID.DataTextField = "JSName";
            freeJSID.DataValueField = "JsID";
            freeJSID.DataSource = dt;
            freeJSID.DataBind();
            dt.Clear();
            dt.Dispose();
        }
        ListItem itm = new ListItem();
        itm.Selected = true;
        itm.Text = "请选择";
        itm.Value = "";
        freeJSID.Items.Insert(0, itm);
        itm = null;
    }

    /// <summary>
    /// 显示系统JS
    /// </summary>
    /// <returns>显示系统JS</returns>
    /// 编写时间2007-04-28   Code By DengXi

    protected void getsysJSInfo()
    {
        NetCMS.Content.Label lc = new NetCMS.Content.Label();
        DataTable dt = lc.getsysJSInfo();
        if (dt != null)
        {
            sysJSID.DataTextField = "JSName";
            sysJSID.DataValueField = "JsID";
            sysJSID.DataSource = dt;
            sysJSID.DataBind();
            dt.Clear();
            dt.Dispose();
        }
        ListItem itm = new ListItem();
        itm.Selected = true;
        itm.Text = "请选择";
        itm.Value = "";
        sysJSID.Items.Insert(0, itm);
        itm = null;              
    }

    /// <summary>
    /// 显示广告JS
    /// </summary>
    /// <returns>显示广告JS</returns>
    /// 编写时间2007-04-28   Code By DengXi

    protected void getadsJsInfo()
    {
        NetCMS.Content.Label lc = new NetCMS.Content.Label();
        DataTable dt = lc.getadsJsInfo();

        if (dt != null)
        {
            adJSID.DataTextField = "adName";
            adJSID.DataValueField = "AdID";
            adJSID.DataSource = dt;
            adJSID.DataBind();
            dt.Clear();
            dt.Dispose();
        }
        ListItem itm = new ListItem();
        itm.Selected = true;
        itm.Text = "请选择";
        itm.Value = "";
        adJSID.Items.Insert(0, itm);
        itm = null;
    }


    /// <summary>
    /// 调查JS
    /// </summary>
    /// <returns>调查JS</returns>
    /// 编写时间2007-04-28   Code By DengXi

    protected void getsurveyJSInfo()
    {
        NetCMS.Content.Label lc = new NetCMS.Content.Label();
        DataTable dt = lc.getsurveyJSInfo();
        if (dt != null)
        {
            surveyJSID.DataTextField = "Title";
            surveyJSID.DataValueField = "TID";
            surveyJSID.DataSource = dt;
            surveyJSID.DataBind();
            dt.Clear();
            dt.Dispose();
        }
        ListItem itm = new ListItem();
        itm.Selected = true;
        itm.Text = "请选择";
        itm.Value = "";
        surveyJSID.Items.Insert(0, itm);
        itm = null;
    }

    /// <summary>
    /// 统计JS
    /// </summary>
    /// <returns>统计JS</returns>
    /// 编写时间2007-04-28   Code By DengXi

    protected void getstatJSInfo()
    {
        NetCMS.Content.Label lc = new NetCMS.Content.Label();
        DataTable dt = lc.getstatJSInfo();

        if (dt != null)
        {
            statJSID.DataTextField = "classname";
            statJSID.DataValueField = "Statid";
            statJSID.DataSource = dt;
            statJSID.DataBind();
            dt.Clear();
            dt.Dispose();
        }
        ListItem itm = new ListItem();
        itm.Selected = true;
        itm.Text = "请选择";
        itm.Value = "";
        statJSID.Items.Insert(0, itm);
        itm = null;
    }

    protected void getFreeLabelInfo()
    { 
        NetCMS.Content.Label lc = new NetCMS.Content.Label();
        DataTable dt = lc.getFreeLabelInfo();

        if (dt != null)
        {
            freeLabelID.DataTextField = "LabelName";
            freeLabelID.DataValueField = "LabelName";
            freeLabelID.DataSource = dt;
            freeLabelID.DataBind();
            dt.Clear();
            dt.Dispose();
        }
        ListItem itm = new ListItem();
        itm.Selected = true;
        itm.Text = "请选择自由标签";
        itm.Value = "";
        freeLabelID.Items.Insert(0, itm);
        itm = null;
    }

}

⌨️ 快捷键说明

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