Working with ASP .Net MVC.

In our normal ASP .NET code,we have onclick events for every button.Unlike that,we don’t have separate onclick events associated with the different buttons in MVC.Thats why it’s important to handle it in a different way.

For example,we have a submit button.we should define a js method to be called from the button in cshtml.In the JS,Onclick event of the method should be defined with the method on the controller action method and it should be trigerred further to trigger that event.