asp.net mvc 4 - Is it possible to nested form in one view in MVC 4? -


i have view form exist. added 1 more form inside form when submit inside form couldn't values inside form. here code snippet.

<% html.beginform("details", "orders", formmethod.post, new { id = "orderdetailsform" }); %> ...     <% html.beginform("addpickupissue", "orders", formmethod.post, new { id = "pickupissueform" }); %>     ...     <% html.endform(); %>     ... <% html.endform(); %> 

is right way it? please guide me here.

tia

nested forms aren't permitted in html, has nothing asp.net mvc. looking @ the html spec, says form elements may contain "no form element descendants."

this makes sense, because if form contained nested form elements, 1 being submitted , values submitted it?

so, no, not right way it. you're going have re-think you're trying accomplish here.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -