The trick is to use the underscore instead of the hyphen:
new { enctype = "multipart/form-data", data_ajax = "false" }
The hyphen is not allowed as part of a c# identifier. The MVC framework translates the underscore automatically.
The trick is to use the underscore instead of the hyphen:
new { enctype = "multipart/form-data", data_ajax = "false" }
The hyphen is not allowed as part of a c# identifier. The MVC framework translates the underscore automatically.