0
我有一个名为ErrorNotificationBox的自定义用户控件。为了把我的网页上我的老...HtmlHelper扩展 - 用户控制
<%@ Register Src="~/PathTo/ErrorNotificationBox.ascx" TagName="ErrorNotificationBox" TagPrefix="uc" %>
<uc:ErrorNotificationBox Runat="server" id="myEnb" Caption="My Test Caption" />
是否有可能延长的HtmlHelper,包括我的用户控件? I.e ...
<%= Html.ErrorNotificationBox("My Test Caption")%>
非常感谢您的帮助。
ETFairfax