I am trying to return the parent View when I call an ActionResult from within a Partial View. If I know the parent view I can just type in return View("Index");, but I can't because their could be multiple parent views as this partial view is shared... So how do I return the correct parent View in the ActionResult?
This seems so simple, but it has me stumped...
Update. Here is the Partial View:
@model Website.Models.PostModel
@using (Html.BeginForm("SubmitPost", "Home", FormMethod.Post))
{
@Html.TextAreaFor(m => m.Message, 2, 50, null)
<br /><br />
<div class="ui-widget">
Notes: @Html.TextBox("Notes", "", new { @class = "ui-autocomplete-input" })
</div>
<br />
<p>
<input type="submit" value="Post" />
</p>
}