亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

獲取Gridview中ButtonField的text屬性

 更新時(shí)間:2014年01月21日 08:46:32   作者:  
本篇文章主要介紹了獲取Gridview中ButtonField的text屬性。需要的朋友可以過來參考下,希望對(duì)大家有所幫助

<asp:BoundField>用cell[2].text取到值。但<asp:HyperLinkField>和<asp:ButtonField>通過cell[0].Text和cell[13].Text取的值都是""。應(yīng)如何取到值呢?

首先將ButtonField按鈕的連接改為Button模式,然后就可以通過以下語句得到text值
Response.Write(((HyperLink)e.Row.Cells[0].Controls[0]).Text);

Response.Write((Button)BStationGridView.Rows[RowIndex].Cells[13].Controls[0]).Text);

相關(guān)文章

最新評(píng)論