开发者

Post data from inside ajax form to the outer asp.net MVC2 form (in a view)

As froms can't be nested I need some hel开发者_运维技巧p to resolve this situation.

I have a mvc view with 2 ajax.BeginForm sections. Each section - the user select something from dropdownlist, or enters some data - and when he push the submit, some more data comes using ajax and displayed.

Now I want to submit the entire form - meaning - all those selection that were made inside the jave forms to be submitted with some more data entered on the parent view.

What is the best way to approach this problem ? how can I send data that is in the ajax forms to the main form post operation ?

Thanks, Dani


yuo can submitt one form and at the beginning of the action get the value of the second form and do your transaction or you can put both in one form and in your action allow it to recive a nullable value what i mean is the value of the submitted control

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜