DataList1中的Label12控件怎么在代码里面没有啊,假如我要把Label12里面的Text值读出来怎么弄哦。页面代码
<asp:DataListID="DataList1"runat="server"RepeatColumns="3"HorizontalAlign="Justify"><...
<asp:DataList ID="DataList1" runat="server" RepeatColumns="3" HorizontalAlign="Justify">
<ItemTemplate>
<table class="style155">
<tr>
<td class="style156" colspan="2">
<asp:ImageButton ID="ImageButton3" runat="server"
ImageUrl='<%# "~/picture/"+Eval("picture") %>' style="text-align: center"
onclick="ImageButton3_Click" />
</td>
</tr>
<tr>
<td class="style176">
名称:</td>
<td>
<asp:Label ID="Label12" runat="server"
style="font-size: small; font-family: 宋体, Arial, Helvetica, sans-serif; color: #666666;"
Text='<%# Eval("albumName") %>'></asp:Label>
</td>
</tr> 展开
<ItemTemplate>
<table class="style155">
<tr>
<td class="style156" colspan="2">
<asp:ImageButton ID="ImageButton3" runat="server"
ImageUrl='<%# "~/picture/"+Eval("picture") %>' style="text-align: center"
onclick="ImageButton3_Click" />
</td>
</tr>
<tr>
<td class="style176">
名称:</td>
<td>
<asp:Label ID="Label12" runat="server"
style="font-size: small; font-family: 宋体, Arial, Helvetica, sans-serif; color: #666666;"
Text='<%# Eval("albumName") %>'></asp:Label>
</td>
</tr> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询