ASP.NET MVC Helpers, Merging two object htmlAttributes together

后端 未结 4 664
感情败类
感情败类 2021-02-01 03:46

I have a situation where I need to write an HTML Helper to extend another html helper. Normally, the helper would look like this.

@Html.TextAreaFo

4条回答
  •  误落风尘
    2021-02-01 04:03

    You might be able to do so with the standard MVC helper method.

    HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)
    

    htmlAttributes is a an object

提交回复
热议问题