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
raj kadam
NA
92
7.5k
Sending Json data to Model in MVC
Oct 29 2015 8:27 AM
this is my json code for sending value but it not getting at controller end..
$("#submitt").click(function ()
{
var name = $("#txtName").val();
var city = $("#txtCity").val();
var data = { 'name': name, 'city': city };
var obj = JSON.stringify(data);
$.ajax(
{
url: '/Mate/Create',
type: 'POST',
dataType: 'json',
data: {},
contentType: 'application/json; charset=utf-8',
success: function (obj)
{
alert(obj.d);
$("#content").html("Sending..");
}
})
});
Reply
Answers (
2
)
Reading Xml Node with Namespace
is mvc part of .net framework?