using framework_business;
using framework_library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Admin_Setup : System.Web.UI.Page
{
///
/// Page Load Event
///
///
///
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!utils.verifySession("user"))
{
Response.Redirect("/admin", false);
}
else
{
if (!Page.IsPostBack)
{
oUser admin = (oUser)Session["user"];
if(!admin.isSetup)
Response.Redirect("/admin", false);
/* CVH 2016-08-19 Setup page has been split into 4 menu items */
if (Request.QueryString["view"] != null)
{
string setupView = Request.QueryString["view"].ToString();
dynamic uc = setup1;
uc.ActivePanel = setupView;
uc.ReloadControl();
}
}
}
}
catch (Exception ex)
{
exception.HandleException("Admin_Content:", MethodBase.GetCurrentMethod().Name, ex, Session["user"]);
Response.Redirect("/error", false);
}
}
}