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
Sagar Bandkar
1.4k
347
48.7k
Data value get Null in ajax action
Jan 20 2017 5:05 AM
function GetStatusDetails(id) {
$.ajax({
url: '@Url.Action("GetStatusDetails","GenerateMemo")',
type: "GET",
data: { "id": id },
datatype: "json",
contentType: "application/json; charset=utf-8",
success: function (data) {
alert(data.vcMemSubject);<-------------------------get Null
if (data != null) {
$("#signature").val(data.vcMemSigunature);
$("#subject").val(data.vcMemSubject);
$("#body").val(data.vcMemText);
}
},
error: function (e) {
//alert(e.data);
}
});
}
[HttpGet]
public tblMstMemo_MEM GetStatusDetails(int id)
{
try
{
if (id > 0)
{
tblMstMemo_MEM statusDetails = db.tblMstMemo_MEM.Find(id);
return statusDetails;
}
}
catch (Exception ex) { ex.Message.ToString(); }
return null;
}
Reply
Answers (
1
)
How to update the table with multiple column names
jquery captcha validation example in html form