index.aspx.cs

(开头部分) 7KB

这里只显示每个文件的开头 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.OleDb;

public partial class index : System.Web.UI.Page
{
    DB dbobj = new DB(); Bind bind = new Bind(); 

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bind.DLBind(dlbbs, "select id,title,editor,format(times,'yyyy-mm-dd') as times from bbs");
            bind.DLBind(dltopnews, "select top 9 id,title,format(times,'yyyy-mm-dd') as times from news where isflash=false order by id desc");
            // 下载于www.51aspx.com
            bind.DLBind(waishiqiaowu, "select top 8 id,title,type,hits,format(times,'yyyy-mm-dd') as times  from menuinfo where type='外事侨务' order by id desc");
            bind.DLBind(lvyouzhilan, "select top 8 id,title,type,hits,format(times,'yyyy-mm-dd') as times  from menuinfo where type='旅游指南' order by id desc");

            bind.DLBind(dllvyouchangshi, "select top 5 *  from info where type='旅游常识'");
            bind.DLBind(dlbanshizhilan, "select top 5 *  from info where type='办事指南'");

            bind.DLBind(dllypic, "select * from picwords where type=2");
            bind.DLBind(dlmingren, "select * from picwords where type=1");


            OleDbConnection con0 = dbobj.GetConnection();
            con0.Open();
            string sql0 = "select * from liuyan";
            OleDbCommand cmd0 = new OleDbCommand(sql0, con0);
            OleDbDataReader dr0 = cmd0.ExecuteReader();

            if (dr0.Read())
            {
                if (dr0["title"] != null)
                {
                    hlhuati.Visible = true;
                    hlhuati.Text = "2.我要参加热点话题讨论";
                    hlhuati.NavigateUrl = "discuss.aspx";
                    //hlhuati.NavigateUrl = "<script language=javascript>window.open('discuss.aspx','','width=700,height=400,scrollbars=yes')</script>";
                }
                
            }
            con0.Close();
            lblerror.Text = "";
            txtuser.Text = "";
            txtpass.Text = "";

        }
    }
    public string getpic(int i)
    {

后面还有 167 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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