ASP.NET MVC Interface Controls - Image Button -
Server-Side Events





Use the Click event to detect when the button is pressed.
C#
Html.Obout(new OboutImageButton("OboutImageButton1") 
{
    ImageUrl = "~/Content/Obout/Interface/images/buy_normal.gif",
    ImageUrl_Over = "~/Content/Obout/Interface/images/buy_over.gif",
    ImageUrl_Focused = "~/Content/Obout/Interface/images/buy_focused.gif",
    ImageUrl_Pressed = "~/Content/Obout/Interface/images/buy_pressed.gif",
    OnClick = "Interface/ImgBtnEventsServer_Click"
})

"I just bought your controls and I must say they are great! I used them during college and I recommended them to my company."

Damian Lobalzo

Random testimonial   All testimonials