private void ExecuteOpenFormControllerOperation() { IWfProcess process = WfClientContext.Current.OriginalActivity.Process; OpenFormControllerOperation operation = new OpenFormControllerOperation(); string requestTicketString = HttpContext.Current.Request.QueryString.GetValue("requestTicket", string.Empty); if (requestTicketString.IsNotEmpty()) { RelativeTicket requestTicket = RelativeTicket.DecryptFromString(requestTicketString); requestTicket.CheckIsValid(); operation.IsRelativeForm = true; } operation.Process = process; operation.NavigationCommand = CollectNavigationCommand(this.GetType()); operation.SceneInfo = CollectSceneInfo(this.GetType()); OnInitOperation(operation); PerformanceMonitorHelper.GetDefaultMonitor().WriteExecutionDuration("DoOpenFormControllerOperation", () => operation.DoOperation()); }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["requestTicket"] != null) { RelativeTicket ticket = RelativeTicket.DecryptFromString((string)Request.QueryString["requestTicket"]); ticket.CheckIsValid(); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["requestTicket"] != null) { RelativeTicket ticket = RelativeTicket.DecryptFromString((string)Request.QueryString["requestTicket"]); ticket.CheckUriReferer(); string redir = RelativeTicket.GetRequestTicketUrl(ticket.TargetUri, string.Empty); Response.Redirect(redir); } }
protected void ProcessRequestTicket(string requestTicket) { RelativeTicket ticket = RelativeTicket.DecryptFromString(requestTicket); ticket.CheckUriReferer(); if (ticket.TargetUri.IsNotEmpty()) { string redir = RelativeTicket.GetRequestTicketUrl(ticket.TargetUri, string.Empty); HttpContext.Current.Response.Redirect(redir); } }
protected override void OnPreRender(EventArgs e) { popupLink.HRef = RelativeTicket.GetRequestTicketUrl("bridge.aspx", "popupForm.aspx?resourceID=abcd"); base.OnPreRender(e); }