im扩展htmlhelper。但它无法调用它的renderaction。如何在我的Html Helper中调用RenderAction?
using System.Text;
using System.Web.Mvc;
using System.Web.Mvc.Html;
public static class ViewHelpers
{
public static string Text(this HtmlHelper htmlHelper, string name, object value, bool isEditMode)
{
htmlHelper.RenderAction(...) //cannot be called
}
}
我该如何调用RenderAction?
@CoffeeCode,进一步反对我的文章发表的留言,你不能传递域模型,以你的助手,然后使用它?对于你想要做什么以及你是否有权访问元素列表或者是否想操纵列表,我有点朦胧。 – griegs 2010-02-18 00:07:59
我只需要访问元素列表 – CoffeeCode 2010-02-18 00:38:58
看到我的编辑我的回答 – griegs 2010-02-18 00:47:39