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