I am not sure if this is even possible buts its driving me insane looking for a solution. I have an MVC3 web application. I can not use the controller to run code OnClick so ActionResult is not an option. Is there any other way to run a method OnClick in MVC3 that does not involve invoking the method from the controller. For a example button in the view that executes a method which is also in the view (I know this is a terrible thing to do but its all I can do at the moment) I can put the method in the view and it executes on load but I need to execute OnClick. Any help on this matter would be greatly appreciated.