Beispiel #1
0
    protected void btnStart_Click(object sender, EventArgs e)
    {
        message = "1";
        string backUrl = new NHibernate.Burrow.Util.WebUtil().WrapUrlWithConversationInfo("SpanByUrl1.aspx");

        Response.Redirect("SpanByUrl2.aspx?returnUrl=" + HttpUtility.UrlEncode(backUrl + "&returned=1"));
    }
 public void WrapTest()
 {
     new BurrowFramework().InitWorkSpace();
     new BurrowFramework().CurrentConversation.SpanWithPostBacks();
     string wrapped = new WebUtil().WrapUrlWithConversationInfo("http://test.com");
     Assert.IsTrue(wrapped.Contains("http://test.com?_NHibernate.Burrow.ConversationId_="));
     wrapped = new WebUtil().WrapUrlWithConversationInfo("http://test.com?t=1");
     Assert.IsTrue(wrapped.Contains("http://test.com?t=1&_NHibernate.Burrow.ConversationId_="));
     new BurrowFramework().CurrentConversation.FinishSpan();
     new BurrowFramework().CloseWorkSpace();
 }
	protected void btnStart_Click(object sender, EventArgs e)
	{
		message = "1";
		string backUrl = new NHibernate.Burrow.Util.WebUtil().WrapUrlWithConversationInfo("SpanByUrl1.aspx");
		Response.Redirect("SpanByUrl2.aspx?returnUrl=" + HttpUtility.UrlEncode( backUrl+"&returned=1") );
	}