Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Datatables with asp.net mvc rendering Url.actions/html.actionlinks with route values

$
0
0

Hi,

I am using datatables to render a table with server side asp.net mvc razor views. I am using the render function to display urls for "editing" rows on the table -

 render": function (data, type, row) {
                        return '<a href=\"LinkedAccountsDetails/' + data + '\">Edit</a>';

                       }

How do I use url.actions with routevalues instead of hardcoding the urls like above. I am able to get url.actions without routevalues to work but when i try and concatenate the data variable as a route value it doesn't work.

Thanks


Viewing all articles
Browse latest Browse all 2364

Trending Articles