且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何...从gridview中的文本框中获取id

更新时间:2023-02-23 23:00:03

循环通过一行 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 of GridView. Then use row.FindControl("txtYourTextBox"); to get the TextBox.

Refer - Accessing the different controls inside a GridView control[^].