2014年6月15日 星期日

[MVC] Two Html.ActionLink in a column using WebGrid

form http://forums.asp.net/t/1653111.aspx?Two+Html+ActionLink+in+a+column+using+Webgrid



columns: grid.Columns(


grid.Column("id"),
grid.Column("Name"),
grid.Column(header: "Actions", format: (item) =>
     new HtmlString(
           Html.ActionLink("Edit", "Edit", new { id = item.id } ).ToString()  +
           Html.ActionLink("Delete", "Delete", new { id = item.id } ) .ToString()
     )
)
)







0 意見:

張貼留言

 

MangoHost Copyright © 2009 Cookiez is Designed by Ipietoon for Free Blogger Template