Exemple #1
0
    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();
            MySqlDataReader 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();

        }
    }
    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();
        }
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string mmmm = DateTime.Now.ToString("yyyyMMddhhmmssfff");
            _imageid.Text = mmmm;

            BLL.procate myb = new BLL.procate();
            DataSet     ds  = myb.dataset();
            _cateid.DataSource = ds.Tables[0];
            _cateid.DataBind();
        }
    }
Exemple #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string mmmm = DateTime.Now.ToString("yyyyMMddhhmmssfff");
            _imageid.Text = mmmm;

            BLL.procate myb = new BLL.procate();
            DataSet ds = myb.dataset();
            _cateid.DataSource = ds.Tables[0];
            _cateid.DataBind();
        }
    }