I have spent over 25 hours this weekend working on this issue.   Since I am determined to use MonoRail on my new client and that client expects to be able to use WebForms, I have not choice but to make this work.  After reading article after article on Server.Transfer vs Response.Redirect vs Context.RewritePath and doing a lot of Reflectoring, I can say that I am pretty confident in what I cant.  I initially tried Server.Transfer, but the fact that it terminates the current pipeline makes it very difficult, if not impossible to apply it within the Controller.InternalSend facility.  I finally came up with a solution that seems to work so far in a small use case.  Unfortunately, it depends on the new ASP.NET 2.0 Server.Execute that can specify preserverForm.  1.1 will always preserverForm.  I imagine I will let 1.1 WebFormsView behave as it does today.  It is way to premature to test if it really works, but as I start building my App, I will know better.  I will probably commit something within the next few days because it can't be worse than what happens know will postbacks and RenderViews as described in the documentation. 
 
I do have 1 question for you.  To avoid unecessary processing in the Controller during a PostBack, I want the controller to be able to determine if it is a PostBack.  I will probably use the fragment you sent me, but I am wondering where to put it.  My initial thought was to create a PageController off SmartDispatcherController, but I am worried about all the places the check for Controller and SmartDispatcherController.  The main 2 are the ControllerMetaDescriptor and the WizardStepPage.   I really want to be able to use your Wizard model.  Do you think this will be a problem?
 
thanks,
  craig 

 
On 6/9/06, hammett <[EMAIL PROTECTED]> wrote:
You mean, RenderView? Yes, very trick. How are you planning dealing
with the PropertyBag? Session? If so, use the session available on the
IRailsEngineContext as this one can be changed.

On 6/9/06, Craig Neuwirt <[EMAIL PROTECTED]> wrote:
> Fair enough.  My goal right now is to be able to support RedirectView by
> eventually performing a Server.Transfer.  This is a little tricky, since I
> must be able to process the PropertyBag and other stuff done by the view
> engine.


--
Cheers,
hammett
http://hammett.castleproject.org/


_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users

_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users

Reply via email to