You can also create an image button WithEvents:
'Declare it
Protected WithEvents btnInventory As ImageButton
'aspx syntax
<asp:ImageButton ID="btnInventory" BorderWidth="0" ImageUrl="/images/icons/xls.gif" Width="16" Height="16" ImageAlign="AbsMiddle" Runat="server" />
'Then create a sub to handle the event
Sub [subname](ByVal s As Object, ByVal e As ImageClickEventArgs) Handles btnInventory.Click
'Program the action required
End Sub
|