关于页面上的ImageButton按钮弹出对话框怎么做
各位大侠:我在WEB页面的html代码中引用了
<asp:ImageButton id=Imagebutton2 OnCommand="ImageButton_Command" Runat="server" ImageUrl="..\img\delete.gif" AlternateText="删除">
</asp:ImageButton>
在程序的控制代码中没有定义这个按钮,所以不能在Page_Load里面加入:
Button1.Attributes["onClick"] = "javascript:return confirm('Yes or No?');";
我该怎么做