开发者

Get Page Url in html.grid

开发者 https://www.devze.com 2023-02-09 11:32 出处:网络
IHave Link in a column of Html.grid in asp.net mvc application ,by clicking on that link ajax modal dialog popup is achieved .开发者_如何学Go.while clicking on the link i want to pass url of page ....

I Have Link in a column of Html.grid in asp.net mvc application ,by clicking on that link ajax modal dialog popup is achieved .开发者_如何学Go.while clicking on the link i want to pass url of page ....

how can i do it

Please help me

Regards Manjunath


Here's how you could use HTML helpers inside a grid:

<%
Html.Grid<Person>(
    "people",
    column => {
        column.For(p => { %>
            <%= Html.ActionLink("link text", "someaction", new { id = p.ID }) %>
        <% });
        column.For(p => p.Name);
    }
);
%>
0

精彩评论

暂无评论...
验证码 换一张
取 消