コード例 #1
0
        /// <summary>
        /// Gets the string to use to redirect the current response to ChangeActivity page.
        /// </summary>
        /// <returns></returns>
        private string GetRedirectLocation()
        {
            string url = ResHelper.Format("./ChangeActivity.aspx?{0}={1}&{2}={3}&{4}={5}",
                                          FramesetQueryParameter.View, FramesetUtil.GetString(Session.View),
                                          FramesetQueryParameter.AttemptId, FramesetUtil.GetStringInvariant(Session.AttemptId.GetKey()),
                                          FramesetQueryParameter.ActivityId, FramesetUtil.GetStringInvariant(Session.CurrentActivityId));
            UrlString urlStr = new UrlString(url);

            return(urlStr.ToAscii());
        }
コード例 #2
0
ファイル: ContentHelper.cs プロジェクト: supermuk/iudico
 /// <summary>
 /// Gets the string to use to redirect the current response to ChangeActivity page.
 /// </summary>
 /// <returns></returns>
 private string GetRedirectLocation()
 {
     string url = ResHelper.Format(
         "./ChangeActivity.aspx?{0}={1}&{2}={3}&{4}={5}",
         FramesetQueryParameter.View,
         FramesetUtil.GetString(this.Session.View),
         FramesetQueryParameter.AttemptId,
         FramesetUtil.GetStringInvariant(this.Session.AttemptId.GetKey()),
         FramesetQueryParameter.ActivityId,
         FramesetUtil.GetStringInvariant(this.Session.CurrentActivityId));
     UrlString urlStr = new UrlString(url);
     return urlStr.ToAscii();
 }