MasterPage.master.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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;
using System.Data.SqlClient;
public partial class MasterPage : System.Web.UI.MasterPage
{
   Alert jd = new Alert();
     SqlHelper db = new SqlHelper();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["UserId"] == null)
            {
                Alert.AlertAndRedirect("对不起您还没有登录", "Login.aspx");
            }
            else
            {
                dlLink.DataSource = db.GetDataReader("select  * from  FUrl  order by  id desc ");
                dlLink.DataBind();

                DataList1.DataSource = db.GetDataReader("select  * from  BBSType  order by  id desc ");
                DataList1.DataBind();
            }
         
        }
    }
    protected string CutChar(string strChar, int intLength)
    {
        //取得自定义长度的字符串
        if (strChar.Length > intLength)
        { return strChar.Substring(0, intLength); }
        else
        { return strChar; }

    }
    //显示字长标题数限制
    public string SubTittle(string Tittle)
    {
        string NewsTittle = Tittle;
        if (Tittle.Length > 13)
        {
            NewsTittle = Tittle.Substring(0, 13);
            return NewsTittle;
        }
        else
        {
            NewsTittle = Tittle;
            return NewsTittle;

        }

    }
后面还有 4 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。