I call the controller action from the view, inside this controller I need to call another action, which I will call to save the view in a network location as HTML or image.
How to get the Action URL from inside the controller. Please note that I need the actual URL, this means that RedirectionToAction or View () are not working.
Why? I need to pass the url that will contain the view call. This view will be used to create an image or HTML document using System.Windows.Forms.WebBrowser.
.NET 3.5 WITH#; MVC 1;
I could do something like that, but its dirty ... well, that leaves me with that dirty feeling.
using(Html.BeginForm("Action", "MyWorkflowController",
new {
MyId = "bla",
URLToGenerateImage = Url.Action("GenerateImage", "MyWorkflowController")
}))
source
share