这是我每次单击编辑按钮时收到的消息:无法加载请求的内容。请稍后再试。
有人有想法么?如果您需要查看部分视图,我可以发布它。
我的控制器:
[HttpPost]
public ActionResult SearchEdit(int modelcount)
{
using (Offers.OffersClient o = new Offers.OffersClient())
{
var offers = (List<Offers.Offer>)Session["offer"];
var offer = offers[modelcount];
return PartialView("Search_Edit", offer);
}
}
我的观点:
<div class="offer_edit">
<a href="@Url.Action("SearchEdit","Home",null,"http")?modelcount=@(i)" class="fancybox">
<img title="Edit" src="../images/edit_button.png" />
</a>
</div>