I have a wriiten jquery ajax code of posing comment ..
function PostComment() { $.ajax({ type :"POST", url:PageUrl+'Post_LectureComment', data:"{Comment:'"+$('#txt_PostComment').val()+"',LectureID:'"+87+"',CategoryID:'"+2+"',Author_Id:'"+ 78+"' }", contentType: "application/json; charset=utf-8", dataType: "json", success:SuccessHandler , }); function SuccessHandler(data) {} }
when i send data to txt_PostComment with 'like = durgesh'rao it shows an error
Payload request: {Comment: 'durgesh'rao', LectureID: '1250', CategoryID: '2', Author_Id: '135'}
- any way to send data using <???
source share