UI/aadmin/proupdate.aspx.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using System.Data.SqlClient;

public partial class admin_product : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BLL.procate myb = new BLL.procate();
            DataSet ds = myb.dataset();
            _cateid.DataSource = ds.Tables[0];
            _cateid.DataBind();
            L_id.Text = Request.QueryString["id"].ToString();
            int  u_id = Convert.ToInt32( L_id.Text);
            BLL.product prob = new BLL.product();
            SqlDataReader dr = prob.selectupdate(u_id);

            if (dr.Read())
            {
                _title.Text = dr["_title"].ToString();
                FCKeditor1.Value = dr["_content"].ToString();
                _posttime.Text = dr["_posttime"].ToString();
                _weight.Text = dr["_weight"].ToString();
                _imageid.Text = dr["_imageid"].ToString();
                _marketprice.Text = dr["_marketprice"].ToString();
                _localprice.Text = dr["_localprice"].ToString();
                _procount.Text = dr["_procount"].ToString();
                _ischeap.SelectedIndex = Convert.ToInt32(dr["_ischeap"].ToString());
                _isrecomment.SelectedIndex = Convert.ToInt32(dr["_isrecommend"].ToString());
                _top.SelectedIndex = Convert.ToInt32(dr["_top"].ToString());
                _cateid.SelectedIndex = Convert.ToInt32(dr["_cateid"].ToString()) + 1;
            }
            dr.Close();
        
        }


    }
    public void msg(string msg)
    {
        BLL.tis myb = new BLL.tis();
        myb.msg(Page, msg);
    }
    protected void upimage_Click(object sender, EventArgs e)
    {


        if (FileUpload1.HasFile == false)
后面还有 117 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。