Detailri.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
namespace khglcrm
{
public partial class Detailri : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["admin"] == null)
{
Response.Write("<script language='javascript'>alert('登录超时');top.location.href='login.aspx';<" + "/script>");
}
else
{
if (!Page.IsPostBack)
{
this.show();
}
}
}
private void show()
{
string strsql = "";
if (Request["type"] == "rizhi")
{
this.Label1.Text = "我的日志";
}
else if (Request["type"] == "wenjian")
{
this.Label1.Text = "我的文件";
}
else
{
this.Label1.Text = "公司动态";
}
strsql = "select * from rizhi where id=" + Request["id"];
DB mydb = new DB();
OleDbDataReader dr = mydb.GetdataReader(strsql);
if (dr.Read())
{
this.Label2.Text = dr["title"].ToString();
if (dr["fujian"].ToString() != "")
{
if (Label3.Visible == false)
{
Label3.Visible = true;
}
this.Label3.Text = "有附件:" + "<a target=" + "_blank" + " href=" + "upImg/" + dr["fujian"].ToString() + ">" + dr["fujian"].ToString() + "</a>";
}
else
{
Label3.Visible = false;
}
this.Label4.Text = mydb.Encode(dr["content"].ToString());
}
后面还有 5 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
