<asp:BoundField>用cell[两].text与到值。但<asp:HyperLinkField>以及<asp:ButtonField>经由过程cell[0].Text以及cell[13].Text与的值皆是""。应奈何与到值呢?

起首将ButtonField按钮的毗连改成Button模式,而后就能够经由过程下列语句获得text值
Response.Write(((HyperLink)e.Row.Cells[0].Controls[0]).Text);

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

点赞(44) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部