WebUserControl3.ascx.cs

(开头部分) 3KB

这里只显示每个文件的开头 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 WebUserControl3 : System.Web.UI.UserControl
{
    private string UserName;
    private string Content;
    private string Ttime;
    private string Title;
    private string rfloor;
    private string LID;
    OleDbConnection con;
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public void showTZ()
    {
        string str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("DB_51Aspx/db.mdb");
        con = new OleDbConnection(str);
        con.Open();

        r_content.Text = Content;
        r_time.Text = Ttime;
        TitleName.Text = Title;
        r_floor.Text = rfloor;
        string aSqlStr;

        if (LID[0] == 'a')
        {
            aSqlStr = "select [leave_word_content] from [leave_word] where [id]=" + LID.Substring(1);
            jh.ImageUrl = "images/digest_1.gif";
            top.ImageUrl = "images/istop.gif";
            del.ImageUrl = "images/del.gif";
            topLink.HRef = topLink.HRef + "&id=" + LID.Substring(1);
            JHLink.HRef = JHLink.HRef + "&id=" + LID.Substring(1);
            DELink.HRef = DELink.HRef + "&id=" + LID.Substring(1);
            jh.Visible = true;
            top.Visible = true;
            jh1.Visible = true;
            top1.Visible = true;
            del.Visible = true;
            delete.Visible = true;
        }
        else
        {
            aSqlStr = "select [restore_content]  from [restore] where [id]=" + LID.Substring(1);
        }
        OleDbCommand acmd = new OleDbCommand(aSqlStr, con);
        r_content.Text = (string)acmd.ExecuteScalar();
后面还有 51 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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