OATest/MailRead3.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 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 MailRead3 : System.Web.UI.Page
{
public string Meetname;
public string title;
public string sendname;
public string pubdate;
public string type;
public string Appurtenance;
public string Contents;
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["Connection"]);
con.Open();
int id = Convert.ToInt32(Request["sid"].ToString());
string sql = "select * from Draft,Employee where Draft.DraftId=" + id + " and Employee.username='" + Session["UserName"].ToString() + "'";
SqlCommand com = new SqlCommand(sql, con);
SqlDataReader dr = com.ExecuteReader();
if (dr.Read())
{
Meetname = dr["Meetname"].ToString();
title = dr["title"].ToString();
sendname = dr["name"].ToString();
pubdate = dr["addDate"].ToString();
type = dr["type"].ToString();
Appurtenance = dr["Appurtenance"].ToString();
Contents = dr["Content"].ToString();
string[] a;
a = Appurtenance.Split(';');
string[] AccIDList ={ "0" };
for (int i = 0; i < a.Length; i++)
{
//LblAcc.Text += "<a href=\"upfiles/" + "+a[i]+"+ target=\"_blank\">" + a[i] + "</a>" + " " + " ";
LblAcc.Text += "<a href=\"upfiles/"
+ a[i]
+ "\" target=\"_blank\">"
+ a[i]
+ "</a>" + " " + " ";
}
//LblAcc.Text+ = "<a href=\"upfiles/"
// + + "\" target=\"_blank\">" + "</a>" + "<br>";
}
con.Close();
}
protected void ddd_Click(object sender, EventArgs e)
后面还有 5 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
