开发者

Get partial value control value in controller action

I m working on asp.net mvc application.

i have one partial view in that one submit form and click on submit button than data will stored in database. but when i get data from form collection than that form collection come null so how can i get partial view control's value in action method?

thanks in advance..

note : pa开发者_运维问答rtial view is not strongly type.


I think you encounter the same issue that is discussed here:

ASP.NET MVC partial views: input name prefixes

To quickly investigate the issue, look at the source code of your page: do your controls from partials have the names you expect? If not, the article above will be helpful.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜