how to use html.befinform..in usercontroler
- by kumar
<% using (Html.BeginForm("edit", "StudentDetails", FormMethod.Post, new { @id="exc-" + Model.StudentID}))
{%
<%= Html.ValidationSummary(true)%
based on the condition like
<%if(model.Summary == "1")%> I need to go to StudnetDetails Controler to execute Edit
if not
Need to go Details Controler to Edit some info.. and I have button in the page like save..
<p>
<%=Html.EditorFor(model => model.SequenceDateTimeAsString)%>
<%=Html.EditorFor(model => model.ID)%>
<input type="submit" class="button" value="Save" />
</p>
Can any body help me out how to handle how actions on condition
thanks