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?
精彩评论