【发布时间】:2009-04-22 03:07:58
【问题描述】:
HTML:
<asp:LinkButton ID="lnk_productImage" runat="server" Text="select"
OnClick="viewProductImage('<%#DataBinder.Eval(Container.DataItem,"Id") %>')"
>
</asp:LinkButton>
代码隐藏:
protected void viewProductImage(object sender, EventArgs e, int id)
{
//Load Product Image
}
【问题讨论】:
-
抱歉代码错误。
')">LinkButton> protected void viewProductImage(object sender, EventArgs e) { } -
请编辑您的代码并在评论中添加内容
标签: c# html parameters onclick linkbutton