protected void DroneDetailRepeater_OnItemCommand(object sender, RepeaterCommandEventArgs e) { string cmdName = e.CommandName; string cmdArgu = e.CommandArgument.ToString(); string Page = Request.QueryString["Page"]; if ("DeleteItem" == cmdName) { ConnectDB.DelectDroneDetail(cmdArgu); } if ("UpDateItem" == cmdName) { string targetUrl = "~/Drone_Detail_CreateData.aspx?ID=" + cmdArgu; Response.Redirect(targetUrl); } if (Page == null) { Page = "1"; } int fistData = (Convert.ToInt32(Page) - 1) * 10 + 1; int LastData = Convert.ToInt32(Page) * 10; DataTable dt1 = ConnectDB.ReadTenDataDroneDetail(fistData, LastData); //dt1 = ConnectDB.ReadTenDataDroneDetail(fistData, LastData); this.DroneDetailRepeater.DataSource = dt1; this.DroneDetailRepeater.DataBind(); //dt1 = ConnectDB.ReadTenDataDroneDetail(fistData, LastData); //this.DroneDetailRepeater.DataSource = dt1; //this.DroneDetailRepeater.DataBind(); }