I have to send data to controller i tried in string fromat but after certain limit it is not accepting data...so i thought to convert it to json and send...or if there is any other way to send more data by Ajax please suggest me,plese tell me how can i convert my data to json format and how to convert it into string in controller,....
var param = "&tbl=" + tbldata;
param = param + "&tblheader=" + tblheader;
var request = $.ajax({
url: '../rep/send?'+param,
type: 'POST',
cache: false,
dataType: 'text',
contentType: 'application/text; charset=utf-8'
});
[HttpPost]
[ValidateInput(false)]
public ActionResult SendReport(string tbl, string tblheader)
{
}