예제 #1
0
        //
        protected void btnupdate_Click(object sender, EventArgs e)
        {
            string id = Request["ID"].ToString();

            string name = this.txtUrl.Text; //链接地址
            string imagePath = this.Photo.Text;

            QPS.NEW.Model.ad a = new QPS.NEW.Model.ad();
            a.Id = Convert.ToInt32(id);
            a.AdUrl = name;
            a.AdImg = imagePath;

            QPS.NEW.BLL.Ad Ba = new QPS.NEW.BLL.Ad();
            //rm.Add(Mro);
            if (Ba.Update(a))
            {
                Response.Write("<script>alert('修改成功!!');</script>");
            }
            else
            {
                Response.Write("<script>alert('修改失败!!');</script>");
            }


        }
예제 #2
0
 void BindShow()
 {
     DataSet dse = new DataSet();
     QPS.NEW.BLL.Ad pt = new QPS.NEW.BLL.Ad();
     dse = pt.GetList("  id =" + tempID + " ");
     this.txtUrl.Text = dse.Tables[0].Rows[0]["adUrl"].ToString();
     this.Photo.Text = dse.Tables[0].Rows[0]["adImg"].ToString();
     this.txtName.Text = dse.Tables[0].Rows[0]["adName"].ToString(); 
 }
예제 #3
0
        void BindShow()
        {
            DataSet dse = new DataSet();

            QPS.NEW.BLL.Ad pt = new QPS.NEW.BLL.Ad();
            dse = pt.GetList("  id =" + tempID + " ");
            this.txtUrl.Text  = dse.Tables[0].Rows[0]["adUrl"].ToString();
            this.Photo.Text   = dse.Tables[0].Rows[0]["adImg"].ToString();
            this.txtName.Text = dse.Tables[0].Rows[0]["adName"].ToString();
        }
예제 #4
0
        void Bind()
        {
            int currentpage = Convert.ToInt32(Request["CurrentPage"]);
            int check = 1;
            currentpage = (currentpage < 1) ? 1 : currentpage;
            if (this.Pager1.CurrentIndex > 0)
            {
                currentpage = this.Pager1.CurrentIndex;
            }
            int pageSize = this.Pager1.PageSize;

            QPS.NEW.BLL.Ad a = new QPS.NEW.BLL.Ad();

            ds = a.Select(pageSize, currentpage);
            dgExamProj.DataSource = ds;
            this.Pager1.ItemCount = a.GetCount();
            dgExamProj.DataBind();
        }
예제 #5
0
        void Bind()
        {
            int currentpage = Convert.ToInt32(Request["CurrentPage"]);
            int check       = 1;

            currentpage = (currentpage < 1) ? 1 : currentpage;
            if (this.Pager1.CurrentIndex > 0)
            {
                currentpage = this.Pager1.CurrentIndex;
            }
            int pageSize = this.Pager1.PageSize;

            QPS.NEW.BLL.Ad a = new QPS.NEW.BLL.Ad();

            ds = a.Select(pageSize, currentpage);
            dgExamProj.DataSource = ds;
            this.Pager1.ItemCount = a.GetCount();
            dgExamProj.DataBind();
        }
예제 #6
0
        //
        protected void btnupdate_Click(object sender, EventArgs e)
        {
            string id = Request["ID"].ToString();

            string name      = this.txtUrl.Text; //链接地址
            string imagePath = this.Photo.Text;

            QPS.NEW.Model.ad a = new QPS.NEW.Model.ad();
            a.Id    = Convert.ToInt32(id);
            a.AdUrl = name;
            a.AdImg = imagePath;

            QPS.NEW.BLL.Ad Ba = new QPS.NEW.BLL.Ad();
            //rm.Add(Mro);
            if (Ba.Update(a))
            {
                Response.Write("<script>alert('修改成功!!');</script>");
            }
            else
            {
                Response.Write("<script>alert('修改失败!!');</script>");
            }
        }