|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
programming VBThis is a discussion on programming VB within the Visual Basic forums. Topic: Can someome help I'm new to visual studio .net I was wondering can you get a image button to ... |
![]() |
![]() |
|
![]() |
LinkBack | Thread Tools | ![]() | Search this Thread | ![]() | Display Modes | ![]() |
|
|
#2 (permalink) |
|
Here you go. You need to set the defaultbutton property on the form tag to your ImageButton.
<body> <form id="form1" runat="server" defaultbutton="_ibtnMyButton"> <div> <asp:ImageButton ID="_ibtnMyButton" runat="server" ImageUrl="~/Images/logo.gif" OnClientClick="javascript:alert('Boo');" /> </div> </form> </body> |
|
|
|
|