Myadmin/down_update.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Data.OleDb;
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;
public partial class Myadmin_down_update : System.Web.UI.Page
{
public static string word_name = string.Empty, jude_pic = string.Empty, rr = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//if (Session["ERICAdmin"] == null)
//{
// Response.Write("<script language='JavaScript'>" + "\n");
// Response.Write("parent.location='UserLogin.aspx?timeout=true';");
// Response.Write("</script>" + "\n");
//}
if (HttpContext.Current.Request.Cookies["UserName"] == null)
{
Response.Redirect("UserLogin.aspx");
}
else
{
datareader();
}
}
}
private void datareader()
{
DataSet ds = AllDataBind.DataBindForInt("download", "id", Request.QueryString["id"].ToString());
txb_title.Text = ds.Tables["OtherTable"].Rows[0]["title"].ToString();
string file_name = ds.Tables["OtherTable"].Rows[0]["word_name"].ToString();
word_name = "../Files/down/" + ds.Tables["OtherTable"].Rows[0]["word_name"].ToString();
//input_file.PostedFile.FileName = "../Files/down/" + ds.Tables["OtherTable"].Rows[0]["word_name"].ToString();
//Response.Write(word_name);
}
protected void Btn_ok_Click(object sender, EventArgs e)
{
if (input_file.PostedFile.FileName == "")
{
OleDbConnection con = DBcon.createcon();
con.Open();
OleDbCommand cmd = new OleDbCommand("update download set add_time='" + DateTime.Now.ToShortDateString() + "',title='" + txb_title.Text + "' where id=" + Convert.ToInt32(Request.QueryString["id"]) + "", con);
后面还有 59 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
