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


Do Something



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 OboutButton("OboutButton0") 
    {                
        OnClientClick = "return requestPermission();"
    })