protected void Page_Init(object sender, EventArgs e) { clsMod = Classes.AllData.Mods[int.Parse(Request.QueryString["ID"])]; if (Session["Submitter"] != null && ((Classes.Submitter)Session["Submitter"]).intID == clsMod.intSubmitterID) { Response.Redirect("ModifyMod.aspx?ID=" + clsMod.intID); } }
protected void Page_Load(object sender, EventArgs e) { clsMod = Classes.AllData.Mods[int.Parse(Request.QueryString["ID"])]; lblName.InnerText = clsMod.strName; lblDescription.Text = clsMod.strDescription.Replace("|lb|", "<br/>"); Title = clsMod.strName; imgScreenshot.ImageUrl = clsMod.strScreenshotLocation; rptFiles.DataSource = clsMod.lclsModFiles.Values; rptFiles.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { clsMod = Classes.AllData.Mods[int.Parse(Request.QueryString["ID"])]; if (IsPostBack == false) { txtName.Text = clsMod.strName; txtDescription.Text = clsMod.strDescription; Title = clsMod.strName; rptFiles.DataSource = clsMod.lclsModFiles.Values; rptFiles.DataBind(); } }