rolling my own @Html.BeginfBrm()

前端 未结 2 823
花落未央
花落未央 2020-12-31 21:11

I am writing a custom validation set that will display all missing elements on a div. I\'d like to be able to use a custom @Html.BeginForm() method that will w

2条回答
  •  醉梦人生
    2020-12-31 21:19

    You need to write an extension method for the HtmlHelper class that prints to helper.ViewContext.Writer.

    The method should return an IDisposable that prints the closing tag in its Dispose method.

提交回复
热议问题