In our MVC application , We are using session in SQL mode.
The issue is while using json, it is returning null values.
Code is
$.ajax({
contentType: 'application/json; charset=utf-8',
type: "POST",
url: "ShowReports",
data: JSON.stringify(ElementDatas),
cache: false,
async: false,
success: function (result) {
if ((result.message != "")
{
}
}
controller.cs
public ActionResult ShowReports(ElementDatas elements)
{
return Json(new { message = message});
}
Suppose if we are using session in proc mode, then json returning values. Please help..