<td>
<asp:Image ID="imagePhoto" name="imagePhoto" runat="server" Height="180px" Width="230px" onclick="aa()" />
</td>
怎么给这个ID加链接(链接一张图片)
<td>
<asp:Image ID="imagePhoto" name="imagePhoto" runat="server" Height="180px" Width="230px" onclick="aa()" />
</td>
怎么给这个ID加链接(链接一张图片)
这个貌似可以直接用 HTML没必要ASP.NET的控件:
<td> <a href="img_url"><asp:Image ID="imagePhoto" name="imagePhoto" runat="server" Height="180px" Width="230px" onclick="aa()" /></a>
</td>
直接选中,点击右键选择连接到的网址,也可以手动输入。