Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string deleteid = Request.Form["id"];

            if (deleteid != null)
            {
                if (TopicBLL.DeleteTopicLittleInfo(int.Parse(deleteid)))
                {
                    Response.Write("yes");
                    Response.End();
                }

                else
                {
                    Response.Write("no");
                    Response.End();
                }
            }

            if (!IsPostBack)
            {
                string page = Request.QueryString["page"].ToString();
                pageIndex = int.Parse(page);
                dt        = new TopicBLL().GetTopicLitterInfo();
                PagedDataSource pds = new PagedDataSource();
                pds.AllowPaging      = true;
                pds.PageSize         = 10;
                pds.CurrentPageIndex = pageIndex - 1;
                pds.DataSource       = dt.DefaultView;
                pageCount            = pds.PageCount;
                rpInfo.DataSource    = pds;
                rpInfo.DataBind();
            }
        }