MVC Widget retuning 404 on View Change
I've been developing an MVC widget which will be used to test some third-party integration functionality.
However, I'm having a lot of trouble making the returned view be recognized.
So, I have my Controller with the following code:
Also, my Default view all it does is have a button to call the Redirect method:
, which will then call the Redirect View:
However, whenever I click go, i get an 404 error. What am I doing wrong or what is wrong with my code?
If I call from the Redirect View from within the Index method, everything works as expected (I get the Redirect view) bot not when that happens as a result of a call/action.
So, basically, the problem was that I was missing an [HttpPost] notation on the Redirect method