Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
how can i pass datetime value to an action method by ajax
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
shosho s
8y
287
1
Reply
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
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
create a grid wich contains the totals of other grids KENDO
how to use ienumerable under which model class is present