后台如何获取repeaer里的lable控件的值
前台<asp:Repeater ID="Repeater1" runat="server"
onitemdatabound="Repeater1_ItemDataBound">
<ItemTemplate>
<table>
<tr>
<td>
<img alt="0" src='<%# Eval("customer-img")%>' width="50" height="50" />
</td>
<td>
<asp:Label ID="Label1" runat="server" Text="客户名:"></asp:Label>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Title")%>'></asp:Label>
<br />
<asp:Label ID="Label2" runat="server" Text="客户简介:"></asp:Label><%# Eval("Content")%>
<br />
</table>
</ItemTemplate>
</asp:Repeater>
后台
if (!IsPostBack)
{
bind();
Label lbl = Repeater1.Items[0].FindControl("Label1") as Lable;
string labl = lbl.Text;
bind2(labl);
}
出现
错误 1 找不到类型或命名空间名称“Lable”(是否缺少 using 指令或程序集引用?) F:\job\job\\Grayhound.CMS\customer.aspx.cs 24 73 Grayhound.CMS