开发者

How to put data attributes in TR tags using ASP.net GridView?

开发者 https://www.devze.com 2023-03-19 14:17 出处:网络
I have an ASP.net page with a GridView. The GridView has a number of rows, each with an associated ID number.I would like to make ASP.net output something like <开发者_如何转开发;tr data-rowId=\'12

I have an ASP.net page with a GridView.

The GridView has a number of rows, each with an associated ID number. I would like to make ASP.net output something like <开发者_如何转开发;tr data-rowId='123'>...</tr> for each row. I know that I can make it output <tr class='123'> using the cssClass attribute on the GridRow object, but is it possible to use custom data attributes on an ASP.net GridView?

0

精彩评论

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