Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Take the case of an invoice. I have id date etc
Its a form. Need to add products. its a different model. But if i add partial view. It becomes form inside a form.

I have begin form in invoice view and ajax form in partial view

My actual problem is i have an invoice and i need to add products to the invoice using ajax and save the complete invoice after adding required products. How to add products without postback.
Tried putting ajax begin form in partial view. Form dint not get rendered inside the already existing invoice form.

Does anyone know. Its very urgent.
Posted
Updated 7-Jul-14 4:41am
v5

1 solution

A view is not a form.
You can have as many partial views as you want.
 
Share this answer
 
Comments
Praveen Kumar U 7-Jul-14 7:13am    
Thanx for the reply. My invoice view is a form. It has begin form.Partial view is ajax form. How do i call partial view inside invoice view. when rendered only one form tag appears.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900