用户控件的编写问题
<div style= "text-align: center; ">
<table cellpadding= "0 " cellspacing= "0 " class= "ML_TitlePt ">
<tr>
<td class= "ML_TdPtbg "> <span class= "glowleft "> 产 品 列 表 </span> </td>
</tr>
</table>
<asp:Repeater ID= "Repeater1 " runat= "server " DataSourceID= "AccessDataSource1 " DataMember= "DefaultView ">
<HeaderTemplate>
<table cellpadding= "1 " cellspacing= "1 " border= "0 " style= "width:85%; vertical-align:middle; text-align: center; ">
</HeaderTemplate>
<ItemTemplate>
<tr>
<td style= "width: 21px; height: 25px; "> <img src= "Images/left_bullet01.gif " width= "13 " height= "11 " alt= " " /> </td>
<td align= "left " style= "width: 150px; "> <a href= "Product.aspx?BigClassName= <%#Eval( "BigClassName ") %> " class= "top_m_txt01 ">
<%#Eval( "BigClassName ").ToString()%> </a> </td>
</tr>
<tr>
<td colspan= "2 " style= "background-image: url(Images/left_line01.gif); height: 1px; "> </td>
</tr>
</ItemTemplate>
<FooterTemplate> </table> </FooterTemplate>
</asp:Repeater>
<asp:AccessDataSource ID= "AccessDataSource1 " runat= "server " DataFile= "~/Data/http.ascx "
SelectCommand= "SELECT * FROM [Bs_PrBigClass] "> </asp:AccessDataSource>
</div>
这是一个用户控件的源码,有什么错误吗?
为什么在页面调用的时候,总提示 元素“product”不是已知元素,原因是网站中可能存在编译错误
------解决方案--------------------页面没注册控件
------解决方案--------------------控件里面
<%@ Control Language= "C# " AutoEventWireup= "true " CodeFile= "WebUserControl.ascx.cs " Inherits= "WebUserControl " %>