I get an error when I try to call a partial view from the wizard.
Partial view:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <form action="/members/TestLoginProcess/" method="post"> U: <input type="text" name="mUsername" /><br /> P: <input type="password" name="mHash" /><br /> <button type="submit">Log In</button> </form>
Action in the Members controller
[ChildActionOnly] public ActionResult TestLogin() { return PartialView(); }
Then I call up a partial view from the main page :
<%= Html.Action("TestLogin", "Members")%>
When I go into debug mode, the main page returns this error:
{Unable to evaluate expression because current stream is in state.}
I do not understand how this error works. Any help would be greatly appreciated!
source share