Flush == Flash be noticed that you will be dependant on SessionState if you do that.
On Tue, Apr 6, 2010 at 4:06 PM, John Simons <johnsimons...@yahoo.com.au>wrote: > You should be able to add the form parameters to the Flush and then do a > redirect to the submit post page. > > Cheers John > > On 06/04/2010, at 6:32, Paweł <twiste...@live.com> wrote: > > I'm working on a forum page. I want users to browse it w/o logging in. > They would be able to fill a new post form and click a send button. > After that, they would be redirected to the login page. After > successfull logging the post would be saved. > > I'm using a simple filter for the login facility. when user is trying > to submit a post form, the filter is launched and the login page is > showed. at that moment all form parameters are available. How can I > pass them back to the Submit post page after an user is successfully > logged in? > > > > > > > [AccessibleThrough(Verb.Post)] > public void AddPost(int threadId, string postText, string > controller, string view) > { > > int userId = (int)Session["MemberId"]; > var textWithoutHtml= getTextWithoutHtml(postText); > PForumPost.AddPost(textWithoutHtml, 0, threadId, userId); > > > var parametry = new Dictionary<string, object>(); > parametry.Add("controller", controller); > parametry.Add("view", view); > parametry.Add("threadId", threadId); > RedirectToAction("ShowPosts", parametry); > } > > > public class AuthenticationFilter : IFilter > { > #region IFilter Members > > public bool Perform(ExecuteEnum exec, IRailsEngineContext > context, Controller controller) > { > if (context.Session.Contains("MemberId")) > return true; > else > { > var parameters = new NameValueCollection(); > parameters.Add("returnUrl", context.Url); > controller.Redirect("Login", "LoginForm", parameters); > } > > return false; > } > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to castle-project-users@googlegroups.com > . > To unsubscribe from this group, send email to > castle-project-users+unsubscr...@googlegroups.com<castle-project-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to castle-project-users@googlegroups.com > . > To unsubscribe from this group, send email to > castle-project-users+unsubscr...@googlegroups.com<castle-project-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > -- Ken Egozi. http://www.kenegozi.com/blog http://www.delver.com http://www.musicglue.com http://www.castleproject.org http://www.idcc.co.il - הכנס הקהילתי הראשון למפתחי דוטנט - בואו בהמוניכם -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-us...@googlegroups.com. To unsubscribe from this group, send email to castle-project-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.