Export (0) Print
Expand All

ImageButton Constructor

Initializes a new instance of the ImageButton class.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public ImageButton()

Use this constructor to create and initialize a new instance of the ImageButton class.

The following example demonstrates how to create and initialize a new instance of the ImageButton class.

void Page_Load(Object sender, EventArgs e) 
{
   ImageButton img_button = new ImageButton();
}
   

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft