public override string ToString() { DataMaster movie = new Movie(); movie.id = Convert.ToInt32(this.read("moid")); movie.get(); return movie.ToString() + " " + this.read("show_start") + " - " + this.read("show_end"); }
public override string ToString() { DataMaster movie = new Movie(); movie.id = Convert.ToInt32(this.read("moid")); movie.get(); DataMaster genre = new Genre(); genre.id = Convert.ToInt32(this.read("gid")); genre.get(); return movie + " - " + genre; }
protected void Page_Load(object sender, EventArgs e) { /* if (Page.IsPostBack == false) { if (!LoginHelper.redirectByAuthenticated("admin")) { //Environment.Exit(0); Content2 = null; } } */ //Movie stuff = new Movie(); //stuff.getSchema(); //stuff.id = 2; //stuff.getSchema(); //stuff.get(); //stuff._dbData["moid"] = "abc"; /*var movies = stuff.getAll (); movies[2].createPlaceHolderTable(placeholder1); movies[1].createPlaceHolderTable(placeholder1); */ //stuff.createPlaceHolderTable(placeholder1); /*People dims = new People(); dims.id = 1; dims.get(); dims.createPlaceHolderTable(placeholder1);*/ //stuff.createPlaceHolderTable(placeholder1); //stuff._dbData["title"] = "en ny titel"; //stuff.update(); Movie filmA = new Movie(); filmA.id = 1; filmA.get(); //Movie filmB = new Movie(); //filmB.id = 2; //filmB.get(); filmA.createPlaceHolderTable(placeholder1); //filmB.createPlaceHolderTable(placeholder1); /* filmA.createPlaceHolderTable(placeholder1); //personA.createPlaceHolderTable(placeholder1); filmB.createPlaceHolderTable(placeholder1);*/ }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { } Page.Header.Title += " - Moviez!"; DataMaster movie = new Movie(); movie.id = Convert.ToInt32(Request["moid"]); if (movie.get()) { showMovieStats.InnerHtml = "Spilletid " + movie.read("runtime").ToString() + "<br />"; showMovieStats.InnerHtml += "Premiere " + ((DateTime)movie.read("launch")).ToShortDateString() + "<br />"; showMovieDesc.InnerHtml = "<h1>" + movie.read("title").ToString() + "</h1>"; showMovieDesc.InnerHtml += movie.read("description").ToString(); showMovieImg.ImageUrl = movie.read("imgurl").ToString(); Page.Header.Title += " - " + movie.read("title"); } else { throw new Exception("Movie not found"); } }
public override string ToString() { DataMaster movie = new Movie(); movie.id = Convert.ToInt32(this.read("moid")); movie.get(); DataMaster person = new People(); person.id = Convert.ToInt32(this.read("peid")); person.get(); DataMaster role = new Role(); role.id = Convert.ToInt32(this.read("rid")); role.get(); return movie + " - " + person + " - " + role; }