Mega Code Archive

 
Categories / ASP.Net Tutorial / ASP Net Controls
 

Important properties, methods and events of ImageButton control

AccessKey:       a key that navigates to the ImageButton control. AlternateText:   alternate text for the image (required for accessibility). DescriptionUrl:  a link to a page that contains a detailed description of the image (required to make a complex image accessible). CommandArgument: a command argument that is passed to the Command event. CommandName:     command name that is passed to the Command event. Enabled:         disable the ImageButton control. GenerateEmptyAlternateText: set the AlternateText property to an empty string. ImageAlign:      align the image relative to other HTML elements in the page.                   Possible values are AbsBottom, AbsMiddle, Baseline, Bottom, Left,                   Middle, NotSet, Right, TextTop, and Top. ImageUrl:        URL to the image. OnClientClick:   a client-side script that executes when the ImageButton is clicked. PostBackUrl:     post a form to a particular page. TabIndex:        tab order of the ImageButton control. Focus:           set the initial form focus to the ImageButton control. Click:           Raised when the ImageButton control is clicked. Command:         Raised when the ImageButton control is clicked.                   The CommandName and CommandArgument are passed to this event.