Q:

How to call controller action from HTML view?

In my HTML View page I am using datepicker control. I want to redirect from view to my controller "Index" action on OnSelect method of datepicker.
<script type="text/javascript">
$(function () {
    var datepickval = null;
    $('#Date').datepicker({
        onSelect: function (selDate) {
            // Here I want to call Action..
        }
    });      
});

So I don't know how to call this. 

A:

Try this
window.location.href = "/{yourcontroller}/{youraction}" 

you can send data as querystring
 window.location.href = "/{yourcontroller}/{youraction}?parameter1=test&parameter2=2" 

