TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shosho s
NA
137
98.7k
how can i pass datetime value to an action method by ajax
Jul 13 2016 11:06 AM
function PassDateTime(date) {
$.ajax({
url: '@Url.Action("GetClientDateTime")',
data: { ClientSideTimeIn: date },
type: 'GET',
success: function (result) {
},
error: function (request, status, error) {
alert(request.responseText);
}
});
}
im trying to pass the datetime value with the above ajax to an action method but i keep an error say:
The parameters dictionary contains a null entry for parameter 'timein' of non-nullable type 'System.DateTime' for method 'System.Web.Mvc.ActionResult GetClientDateTime(System.DateTime)' .....
how can i resolve this..please help
Reply
Answers (
1
)
How to save registered values in mvc with out useing class
how to use ienumerable under which model class is present