protected void Page_Load(object sender, EventArgs e) { // need profile to determine which fields to render _profile = function.getParm("profile", "").ToLower(); if (_profile.Length == 0) { status.Text = "missing profile"; } else { JSON = v8server.profiles(_profile); if (JSON == "null") { status.Text = "profile is invalid"; } else { // get profile parms List <ProfileParameters> profileParameters = serializer.Deserialize <List <ProfileParameters> >(JSON); _logo = getProfile(profileParameters, "logo", ""); _contentSource = getProfile(profileParameters, "contentSource", ""); _custId = getProfile(profileParameters, "custId", ""); _autoEnrollWs = getProfile(profileParameters, "autoEnrollWs", ""); // currently only setup to handle autoEnrollWs if (_autoEnrollWs != "True") { status.Text = "service is only configured for 'autoEnrollWs'"; } else { launch.Text = "<a href='http://corporate.vubiz.com/vubizApps/accessSimulator.aspx?profile=" + _profile + "'>" + "https://corporate.vubiz.com/vubizApps/accessSimulator.aspx?profile=" + _profile + "</a>"; custLogo.ImageUrl = "styles/logos/" + _logo; if (_contentSource != "assigned") { rowMembPrograms.Visible = false; } JSON = v8server.custTitle(_custId); CustTitle custTitle = serializer.Deserialize <CustTitle>(JSON); title.Text = custTitle.custTitle; container.Visible = true; status.Text = "Welcome. Please fill in the form then click \"Auto-Enroll & Launch\"."; } } } }