开发者

Access Html.BeginForm declared in MasterPage from child

I've run into an instance where I'd like to change the Enctype of the form declared in my current view's master page. I'd like to make the change in order to support attachments via Request.Files.

Alternately is it possible to nest form tags开发者_StackOverflow中文版?


You can use javascript to do that. Here's how you can do it with jQuery.

$('#masterForm').attr('enctype', 'new value');
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜