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
Gurmeet Singh
NA
176
39.8k
Exception occurs when deserialize json data
Nov 28 2016 6:39 AM
Object reference not set to an instance of an object when deserialize json data
public ActionResult GetBill(string[] jdata)
{
List
datax1 = JsonConvert.DeserializeObject
>(jdata.ToString());
return view("GetBill");
}
$scope.genbil = function () {
//alert(angular.toJson($scope.itemslst));
//var jdata = ["role1", "role2", "role3"];
var jdata =[angular.toJson($scope.itemslst)];
alert(jdata);
jQuery.ajax({
type: "POST",
url: "/CustomerItem/GetBill",
dataType: "json",
contentType: "application/json; charset=utf-8",
data: JSON.stringify(jdata),
success: function (data) { alert(data); },
failure: function (errMsg) {
alert(errMsg);
}
});
}
Please anyone can help me.
Reply
Answers (
3
)
Which is best Between Entity Framework And Stored Procedure
Group by in datatable in C# and Merge Grouped Records in one