开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜