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





Use the OnClientClick property to set a client-side event handler for the 'click' event.
You can use this to execute some client-side code before posting the page back to the server.
C#
Html.Obout(new OboutImageButton("OboutImageButton1") 
{
    ImageUrl = "~/Content/Obout/Interface/images/ICQ_normal.gif",
    ImageUrl_Over = "~/Content/Obout/Interface/images/ICQ_over.gif",
    ImageUrl_Focused = "~/Content/Obout/Interface/images/ICQ_focused.gif",
    ImageUrl_Pressed = "~/Content/Obout/Interface/images/ICQ_pressed.gif",
    OnClientClick = "return requestPermission();"
})