0
点赞
收藏
分享

微信扫一扫

【Vegas原创】GridView前台绑定HyperLink参数&自动编号

鱼板番茄 2022-09-23 阅读 232

<asp:HyperLinkField DataTextField="trano"  DataNavigateUrlFormatString="dl_type.aspx?trano={0}"  DataNavigateUrlFields="trano" HeaderText="申请单编号" />


Rowdatabound实践中:

【Vegas原创】GridView前台绑定HyperLink参数&自动编号_perl

if (e.Row.RowIndex != -1)

{
int id = e.Row.RowIndex + 1;
e.Row.Cells[0].Text = id.ToString();

}




举报

相关推荐

0 条评论