我如何...从gridview中的文本框中获取id [英] How do I...get the id from the textboxes inside gridview
本文介绍了我如何...从gridview中的文本框中获取id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你怎么从gridview里面的文本框中获取id,因为我不知道如何得到它们,谢谢你,对不起我的英语
解决方案
循环通过一行GridView
。然后使用row.FindControl(txtYourTextBox);
获取TextBox
。
参考 - 访问内部的不同控件GridView控件 [ ^ ]。
how do you get the id from the textboxes inside gridview, cuz i dont know how get them, thank you, sorry for my english
解决方案
Loop through the Rows ofGridView
. Then userow.FindControl("txtYourTextBox");
to get theTextBox
.
Refer - Accessing the different controls inside a GridView control[^].
这篇关于我如何...从gridview中的文本框中获取id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文