how to use html.befinform..in usercontroler
Posted
by kumar
on Stack Overflow
See other posts from Stack Overflow
or by kumar
Published on 2010-05-13T17:40:48Z
Indexed on
2010/05/13
17:44 UTC
Read the original article
Hit count: 238
jQuery
<% 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
© Stack Overflow or respective owner