Web/Admin/productAdmin/productClass_admin.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.IO;
using System.Text;
public partial class admin_product_productClass_admin : basePage
{
upImage ui = new upImage();
PublicClass pc = new PublicClass();
Bll.ProdutClassBLL B_pro = new Bll.ProdutClassBLL();
Model.tab_product_class M_pro = new Model.tab_product_class();
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
//this.CheckUser();
pc.GetProductClass(this.DropDownList1);
//this.DropDownList1.Items.Insert(0, new ListItem("------", "x"));
}
}
protected void Button5_Click(object sender, EventArgs e)
{
Response.Write("<script>window.open('showProductClass.aspx','产品类别','300px','500px');</script>");
}
protected void Button2_Click(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
StringBuilder strsel = new StringBuilder();
strsel.Append("SELECT [productClassID], [productClassName], [faName], [productClassContent] FROM [v_productClass] ");
strsel.AppendFormat(" where productClassName like '{0}'+'%'", this.TextBox1.Text);
if (this.DropDownList1.SelectedIndex > 0)
strsel.AppendFormat(" and productClassParentID={0}", this.DropDownList1.SelectedValue);
this.proClassDataSource.SelectCommand = strsel.ToString();
this.proClassDataSource.DataBind();
}
protected void Button3_Click(object sender, EventArgs e)
{
Response.Redirect("productClass_add.aspx");
}
protected void Button4_Click(object sender, EventArgs e)
{
Response.ClearContent();
Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls");
Response.ContentType = "application/excel";
后面还有 55 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
