admin/addproduct.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 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 admin_addproduct : System.Web.UI.Page
{
String SqlStr;
DB db = new DB();
DataSet Ds = new DataSet();
String full_name;
//绑定手机品牌
void BookType_DataBind()
{
SqlStr = "select * from 手机类型表";
Ds = db.GetDataTableBySql(SqlStr);
try
{
string booktype_name;
for (int i = 0; i < Ds.Tables[0].Rows.Count; i++)
{
booktype_name = Ds.Tables[0].Rows[i][1].ToString();
BookType.Items.Add(booktype_name);
}
}
catch (Exception)
{
Response.Write("<script>alert('没有获得数据!')</script>");
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
//Session["Username"] = "admin";
if (Session["Admin_UserName"] != null)
{
BookType_DataBind();
}
else
{
Response.Redirect("Error.aspx");
}
}
}
protected void btn_Ok_Click(object sender, EventArgs e)
{
if (Session["Admin_UserName"] != null)
{
try
{
string path_file = fimage.PostedFile.FileName.ToString();
string file_type = path_file.Substring(path_file.LastIndexOf("."));
string file_name = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
后面还有 52 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。