我想將htmlAttributes作爲參數傳遞給我的HtmlHelper,類似於它在 中創建的Html.ActionLink(「linktext」,「Home」,null,new {width =「100px」 }) 如何這個新的{WIDTH = 「100px的」}傳遞給我的方法ASP.NET MVC - 傳遞htmlAttributes作爲參數
public static string SelectCategoryAdminWithAllItem(this HtmlHelper htmlHelper, string name, **???**)
{ }
以及如何解析呢?
謝謝
我使用ASP.NET MVC 2.0,而不是3.0 :( – 2011-06-06 12:16:25