admin/imgup.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.IO;
public partial class admin_imgup : System.Web.UI.Page
{
DBhelper db = new DBhelper();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["Name"] == null)
{
Response.Redirect("../main.aspx");
}
if (Request.QueryString["id"] != null)
{
dlBind();
}
DropBind();
}
}
protected string Oldname()
{
string DoSql = "select * from Album where AlbumID='" + Request.QueryString["id"] + "'";
SqlDataReader dr = db.Logins(DoSql);
string oldname;
if(dr.Read())
{
oldname = dr["AlbumName"].ToString();
return (oldname);
}
return ("0");
}
protected void DropBind()
{
string DropSql = "select distinct AlbumName from Album";
DropAlbum.DataSource = db.GetDataSet(DropSql,"Album");
DropAlbum.DataTextField = "AlbumName";
DropAlbum.DataBind();
}
protected void dlBind()
{
string DoSql = "select * from Album where AlbumID='" + Request.QueryString["id"] + "'";
SqlDataReader dr = db.Logins(DoSql);
if (dr.Read())
{
TextAlbum.Text = dr["AlbumName"].ToString();
LbTime.Text = dr["AlbumDate"].ToString();
albumdis.InnerText = dr["AlbumDis"].ToString();
DropAlbum.Text = dr["AlbumName"].ToString();
dr.Close();
}
int curpage = Convert.ToInt32(this.labPage.Text);
后面还有 133 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
