ImageButton 构造函数
初始化 ImageButton 类的新实例。
命名空间:System.Web.UI.WebControls 程序集:System.Web(在 system.web.dll 中)
语法
示例
下面的示例说明如何创建和初始化 ImageButton 类的新实例。
Visual Basic
Sub Page_Load(sender As Object, e As EventArgs) Dim img_button As New ImageButton() End Sub
C#
void Page_Load(Object sender, EventArgs e) { ImageButton img_button = new ImageButton(); }
J#
void Page_Load(Object sender, EventArgs e) { ImageButton img_button = new ImageButton(); } //Page_Load
JScript
function Page_Load(sender : Object, e : EventArgs){ var img_button : ImageButton = new ImageButton() }