ajax request to return partial view

ahiyachudpoe

New Member
Good day! I was looking on this site, but i have failed=) I'm trying to make request returns on ajax updated partial view. Apparently request is not returned from the ajax-function.Here ajax-code:\[code\]<script type="text/javascript">function doAjaxPost(myid) { // get the form values var ApplSort = $('#DropDownListSort').val(); var radio_check_val=0; for (i = 0; i < document.getElementsByName('radio').length; i++) { if (document.getElementsByName('radio').checked) { radio_check_val = document.getElementsByName('radio').value; } } // alert("myid=" + myid +";"+ "ApplSort=" + ApplSort + ";" + "radio_check_val=" + radio_check_val); $.ajax( { type: 'POST', contentType: 'application/json; charset=utf-8', data: { ApplSort: ApplSort, radio_check_val: radio_check_val, myid: myid }, UpdateTargetId: "tabledata", dataType: 'html', url: 'Partner/PartnerApplications', success: function (data) { var result = data; $('tabledata').html(result);}, error: function (error) { alert('
 
Back
Top