javascript - How can I update a model in the view with ajax? -
here portion of code:
@foreach (var item in model) {
<div class="ticket-overview"> <ul> <li class="ticket-data-activity"> <a href="#" class="ticket-open-details"> @{ string desc = item.description.tostring(); if (desc.length > 20) { desc = desc.substring(0, 20); } @desc } </a> </li>
i have view shows model controller. want update model ajax call. view remain same, model should change.
is possible? if yes, how? give me idea. ask if clarification of question needed, i'm new user , not expert in asking.
clarification: it's unordered list built custom table. say, want go next page, i've button clicked on. table data should updated. hence model needs updated.
thanks...
define div update. use jquery directly via .get() or .ajax(), or ajax.beginform call controller see: using ajax.beginform asp.net mvc 3 razor
Comments
Post a Comment