ImageButton Constructor ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 1.1
Return to top
Show: