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();"
    })
    

"I would like to tip my hat to you on your response time...holy buckets, I have never had someone respond that fast. Thank You!!"

Bryan Spann

Random testimonial   All testimonials