2011-02-16 34 views
0
<%@ Register TagPrefix="uc3" TagName="AccountDetailCustomerBook" Src="/Controls/AccountDetailCustomerBook.ascx" %> 

<%@ Register TagPrefix="uc2" TagName="AccountDetailHistoryChart" Src="/Controls/AccountDetailHistoryChart.ascx" %> 

<%@ Register TagPrefix="uc1" TagName="AccountDetailAssetChart" Src="/Controls/AccountDetailAssetChart.ascx" %> 

<%@ Register TagPrefix = "uc4" TagName = "DetailsAnnuity" Src= "/Controls/DetailsAnnuity.ascx" %> 
<%@ Register TagPrefix="uc3" TagName="AccountDetailCustomerBook" Src="/Controls/AccountDetailCustomerBook.ascx" %> 

<%@ Register TagPrefix="uc2" TagName="AccountDetailHistoryChart" Src="/Controls/AccountDetailHistoryChart.ascx" %> 

<%@ Register TagPrefix="uc1" TagName="AccountDetailAssetChart" Src="/Controls/AccountDetailAssetChart.ascx" %> 

<%@ Register TagPrefix = "uc4" TagName = "DetailsAnnuity" Src= "/Controls/DetailsAnnuity.ascx" %> 

使用infragistics我有這個錯誤彈出n下面是代碼如何使用控件。 我如何刪除此錯誤?錯誤:元素「Element1」不是已知元素。這可能會發生,如果有網站

<uc3:AccountDetailCustomerBook ID="AccountDetailCustomerBook1" runat="server" />所以我這樣使用它。它說:元素「accountdetails customerbook」不是已知的元素,它顯示所有控件的錯誤。

+0

所以我這樣使用它,它說元素「AccountDetailsCustomerBook」不是一個知道元素,它顯示所有控件的錯誤 – CoderUnknown 2011-02-16 22:29:26

回答

1

我有一個類似的問題,並通過在src位置的開頭添加一個波浪號〜字符來解決它。

例如,註冊4個控制如下:

<%@ Register TagPrefix="uc3" TagName="AccountDetailCustomerBook" Src="~/Controls/AccountDetailCustomerBook.ascx" %> 
<%@ Register TagPrefix="uc2" TagName="AccountDetailHistoryChart" Src="~/Controls/AccountDetailHistoryChart.ascx" %> 
<%@ Register TagPrefix="uc1" TagName="AccountDetailAssetChart" Src="~/Controls/AccountDetailAssetChart.ascx" %> 
<%@ Register TagPrefix="uc4" TagName="DetailsAnnuity" Src="~/Controls/DetailsAnnuity.ascx" %> 
0

手動聲明在designer.cs文件,然後創建你的項目AccountDetailCustomerBook1。你會看到這個問題更多的相關錯誤。

相關問題