开发者

Access Html.BeginForm declared in MasterPage from child

开发者 https://www.devze.com 2023-02-09 18:13 出处:网络
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.

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

精彩评论

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