[英]Close tag on closing brace using Html Helper in ASP.net MVC
如何创建一个帮助器,如Html.Form助手,当你关闭大括号时关闭标签?
It needs to implement IDisposable
and render the closing brace in the Dispose
method. 它需要实现IDisposable
并在Dispose
方法中呈现IDisposable
括号。 You can then have the same using
behavior as with the HtmlForm helper. 然后,您可以using
与HtmlForm帮助程序相同的using
行为。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.