I need to setup an ASP.Net MVC view with a Date Picker that will send a postback to the controller when it is changed with its new date. I know there is a Date Picker in JQuery, but how would i get it to send the data to the controller?
+1
A:
You could just attach something to the onchange on that element.
...
$("#datapicker").change(function(){
$.post('someurl', data);
}
...
stimms
2009-10-26 02:19:06
+1
A:
The jQuery Datepicker has an option named onSelect
. You can pass a function to that option to post the data to server-side.
$("#datepicker").datepicker({
onSelect: function(dateText, instance) {
//post the data here
}
});
çağdaş
2009-10-26 02:53:40
+1
A:
There are few nice articles on ASP.NET MVC with very fine details at: http://www.altafkhatri.com/Technical/How%5Fto%5Fbind%5FIList%5Fwith%5FMVC%5FDropdownlist%5Fbox
rajuyusuf
2009-11-06 16:12:43