我在 id 为“rating”的 div 中有一个部分视图。所以我在同一个局部视图中有一个 ajax 链接。因此,当我单击链接时,它会更新一次,如果我第二次单击链接,则会加载 div 两次并单击 3 次加载多次。
有人有同样的问题吗?
<div class="rating">
@Ajax.ActionLink("Flag this review as inappropriate", "CourseRatingFlag", "Content", new { cID = Model.courseRatings[index].crid}, new AjaxOptions() { HttpMethod = "POST",TargetId="rating" })
some content...
</div>