protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SetPageRibbon(StandardModuleRibbons.SetupRibbon()); if (Request["MGID"] != null) { lblMGID.Text = Request["MGID"]; if (Request["L"] != null) { lblDiff.Text = Request["L"]; } var s = (lblDiff.Text == "1" ? " - EASY Difficulty" : (lblDiff.Text == "2" ? " - MEDIUM Difficulty" : " - HARD Difficulty")); var o = Minigame.FetchObject(int.Parse(lblMGID.Text)); AdminName.Text = o.AdminName + s; var o2 = MGChooseAdv.FetchObjectByParent(int.Parse(lblMGID.Text)); lblCAID.Text = o2.CAID.ToString(); } else { Response.Redirect("MiniGameList.aspx"); } } //MasterPage.RequiredPermission = PERMISSIONID; MasterPage.IsSecure = true; MasterPage.PageTitle = string.Format("{0}", "Choose Your Adventure Slides List"); _mStrSortExp = String.Empty; if (!IsPostBack) { _mStrSortExp = String.Empty; } else { if (null != ViewState["_SortExp_"]) { _mStrSortExp = ViewState["_SortExp_"] as String; } if (null != ViewState["_Direction_"]) { _mSortDirection = (SortDirection)ViewState["_Direction_"]; } } }