protected void enroll_click(object sender, EventArgs e) { // pass the custGuid and the membId to caamEnroll WS (which will return the membNo or null) string _custGuid = custGuid.Text; string _membId = membId.Text; string JSON = v8server.caamEnroll(_custGuid, _membId); CaamEnroll caamEnroll = serializer.Deserialize <CaamEnroll>(JSON); if (caamEnroll == null || simulator.Text.ToLower() != "mpcbackdoor") { panel.HorizontalAlign = System.Web.UI.WebControls.HorizontalAlign.Left; status.Text = "" + "Access to the Campus has been denied. Possible reasons : <br /><br />" + "   - there is NO content available for this learner;<br />" + "   - content for this learner has expired;<br />" + "   - the MPC No is not a valid Learner Id;<br />" + "   - the MPC No is valid but Inactive;<br />" + "   - the Campus GUID is invalid for CAAM3001;<br />" + "   - the Campus GUID is valid but CAAM3001 is Inactive;<br />" + "   - Simulator Id is missing or invalid;<br />"; } else // pass both the membGuid and the membNo into V8 { string _membGuid = caamEnroll.membGuid; string _membNo = caamEnroll.membNo; // string url = "/vubizApps/Default.aspx?appId=vubiz.8&profile=caam&membGuid=" + _membGuid + "&membNo=" + _membNo; string url = "/v8/?profile=caam&membGuid=" + _membGuid + "&membNo=" + _membNo; Response.Redirect(url, false); } }