c# - Issue with Partial View name -


hi stuck in code don't no whats wrong have done. getting in error block.

enter image description here

this function call

function getdocumenttlist(fid, cid) {     var furl = "/claimedit/alldocumentlist";     if (fid && cid) {         $.ajax({             type: 'get',             url: furl,             datatype: "html",             async: false,             data: { "folderid": fid, "claimid": cid, "page": 1 },             contenttype: "application/json; charset=utf-8",             success: function (result) {                 $('#partialdivdocumentlist').html(result);                 $('#partialdivdocumentlist').css('display', 'block');                 //....now update navigation list start.                 $.ajax({                     type: 'get',                     url: '/claimedit/navigationlist',                     datatype: "text",                     async: false, data: { "parentid": fid, "claimid": cid },                     contenttype: "application/json; charset=utf-8",                     success: function (result) {                         $('#divnavigationlist').html(result);                     }                 });                 //....now update navigation list end.             },             error: function (request, status, error) {                 alert(request.responsetext);             }         });     } } 

this view "alldocumentlist.cshtml"

 @model pagedlist.ipagedlist<crm.core.viewmodel.claim.claimdocumentviewmodel>      @using pagedlist.mvc;      <table class="table-grid-3" cellpadding="0" cellspacing="0" border="0" width="100%">          <thead>              <tr>                  <th width="60%">                      document                  </th>                  <th width="20%">                      date                  </th>                  <th width="20%">                      user name                  </th>              </tr>          </thead>          <tbody>              @foreach (var item in model)              {                  <tr>                      <td>                          @ajax.actionlink(item.claimdocumentname, "docview", new { claimdocid = item.claimdocumentid, path = item.claimdocumentpath + item.claimdocumentname }, new ajaxoptions() { httpmethod = "get", updatetargetid = "divpartidaldocview", insertionmode = insertionmode.replace })                      </td>                      <td>                          @html.displayfor(modelitem => item.claimdocumentuploaddate)                      </td>                      <td>                          @html.displayfor(modelitem => item.username)                      </td>                  </tr>              }          </tbody>      </table>      page @(model.pagecount < model.pagenumber ? 0 : model.pagenumber) of @model.pagecount      @html.pagedlistpager(model, page => url.action("alldocumentlist", new { page, folderid = viewbag.folderid, claimid = viewbag.claimid }), pagedlistrenderoptions.enableunobtrusiveajaxreplacing(new ajaxoptions { httpmethod = "get", updatetargetid = "partialdivdocumentlist" }))

and last action.

public actionresult alldocumentlist(int folderid, int claimid, int? page) {     viewbag.folderid = folderid;     viewbag.claimid = claimid;     mapper.createmap<claimdocument, claimdocumentviewmodel>();     var folderlist = _claimdoc.getclaimdocumentlistbyfolderidclaimid(claimid, folderid);     var folderlistmodel = folderlist.orderby(x => x.claimdocumentid).tolist();     var pagenumber = (page ?? 1);     return partialview(folderlistmodel.topagedlist(pagenumber, common.constants.pagesize)); } 

i stuck wiith error partial view alldocumentlist not able find out, while searching adding " \u0027" not hunk in mvc please bare me if ask thing silly.

\u0027 refers single quote..you should try encode string or use json.net sends encoded strings is.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -