admin/productkan.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 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_productkan : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label2.Visible = false;
if (!IsPostBack)
{
string mysql = "select * from product where pid='" + Request.QueryString["id"] + "'";
SqlDataReader dr = Class1.sqrea(mysql);
if (dr.Read())
{
TextBox1.Text = dr["productname"].ToString();
TextBox2.Text = dr["masterprice"].ToString();
TextBox3.Text = dr["hotprice"].ToString();
TextBox4.Text = dr["productguanjian"].ToString();
TextBox5.Text = dr["productchu"].ToString();
TextBox6.Text = dr["guige"].ToString();
TextBox7.Text = dr["pkc"].ToString();
TextBox8.Text = dr["jifen"].ToString();
TextBox9.Text = dr["zenpin"].ToString();
Free1.Text= dr["productintroduce"].ToString();
DropDownList3.SelectedValue = dr["newproduct"].ToString();
Image1.ImageUrl ="~/"+dr["productimage"].ToString();
string mysql2 = "select * from leibie";
DropDownList1.DataSource = Class1.gd(mysql2);
DropDownList1.DataTextField = "classname";
DropDownList1.DataValueField = "classid";
DropDownList1.SelectedValue = dr["classid"].ToString();
DropDownList1.DataBind();
string mysql3 = "select * from leibiex where classid='"+DropDownList1.SelectedValue+"'";
DropDownList2.DataSource = Class1.gd(mysql3);
DropDownList2.DataTextField = "classxname";
DropDownList2.DataValueField = "classxid";
DropDownList2.SelectedValue = dr["classxid"].ToString();
DropDownList2.DataBind();
/* Label3.Text = dr["lastusername"].ToString();
Label4.Text = dr["lasttime"].ToString();
//Image1.ImageUrl = "~/" + "image/ba.jpg";
*/
}
}
}
后面还有 85 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。