2

I'm very new to the MVC development environment. Can anyone direct me to the necessay resources or provide me a sample code which uses State Machine Workflow to control the views (navigate between views).

3
  • why do you think you need that? Commented Jan 26, 2014 at 21:31
  • There is a reason why there are no examples available. Because it makes no sense to control views through SMW. Just read tutorials on MVC. Start here asp.net/mvc/pluralsight Commented Jan 27, 2014 at 10:32
  • See my last posted answer. Is this what you are looking for? Commented Jan 27, 2014 at 15:56

1 Answer 1

2

You can just use the RedirectToAction method: http://msdn.microsoft.com/en-us/library/system.web.mvc.controller.redirecttoaction.aspx

Once your workflow determines what action needs to be executed, call that method and the browser will be redirected and control moved to that action. On the other hand, if you just need to present a specific view, you can just use the controller's View method and pass in the name of the view you want to show: http://msdn.microsoft.com/en-us/library/system.web.mvc.controller.view.aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.