protected void Page_PreInit(object sender, EventArgs e) { schedInterface.slides _slides = new schedInterface.slides(); Slide s = _slides.single(Convert.ToInt32(Page.RouteData.Values["id"])); _slides.delete(s.id); Response.Redirect("/decks/slides/" + s.deck_id); }
public Boolean reorder(string _photos) { ArrayList pageList = new ArrayList(_photos.Split(new char[] { ',' })); int pageCount = 1; foreach (string photo in pageList) { Slide s = _slides.single(Convert.ToInt32(photo)); s.display = pageCount; _slides.reorder(s); pageCount++; } return(true); }