ShopAdmin/ProductInfo/UpdateProduct.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Model;
using BLL;
namespace ShopAdmin.ProductInfo
{
public partial class UpdateProduct : System.Web.UI.Page
{
private Int32 proId = 0;
private Int32 adminId = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (SubTool.CheckAdminLogin("0"))
{
adminId = WebUtility.CheckInt(MyCookie.getCookiesValue("shop8517Admin", "AdminId"));
if (!this.IsPostBack)
{
proId = WebUtility.CheckInt(Request["pId"]);
if (proId == 0)
{
Response.Write(WebUtility.AlertUrl("产品信息不存在,请重新选择!!", "MgProduct.aspx"));
Response.End();
}
txtProId.Text = proId.ToString();
initIframe();
bindddlData();
bindProductInfo();
btnUpdate.Attributes.Add("onclick", "return jsCheck();");
}
}
}
private void initIframe()
{
string txtUrlPara = "btnDel=0&btnUp=1&imgUrl=/Images/PublicImg/Erro.png&FileDirectory=/UpLoadProImg&InitImgName=0&BigImgName=1&SmallImgName=1&SmallPicWidth=150&SmallPicHeight=150";
liIframe.Text = "<iframe id=\"ifUpLoadFile\" src=\"/Tool/UpLoadFileUI.aspx?" + txtUrlPara + "\" frameborder=\"no\" scrolling=\"no\" style=\" height:200px;\" runat=\"server\"></iframe>";
}
private void bindddlData()
{
if (HttpContext.Current.Application["shopDanWeiList"] != null)
{
DataSet ds1 = (DataSet)Application["shopDanWeiList"];
ddlDanWei.Items.Clear();
ddlDanWei.DataSource = ds1.Tables[0];
ddlDanWei.DataTextField = "n";
ddlDanWei.DataValueField = "v";
ddlDanWei.DataBind();
}
if (HttpContext.Current.Application["shopQQList"] != null)
{
DataSet ds2 = (DataSet)Application["shopQQList"];
ddlQQList.Items.Clear();
ddlQQList.DataSource = ds2.Tables[0];
后面还有 113 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
