我在id为'rating'的div中有局部视图。所以我在同一局部视图中有一个ajax链接。所以,当我点击链接时,它会更新一次,如果我第二次点击链接,它会加载div两次并点击三次加载多次。
有人有同样的问题吗?
<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>