我如何...从gridview中的文本框中获取id [英] How do I...get the id from the textboxes inside gridview

查看:80
本文介绍了我如何...从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 of GridView. Then use row.FindControl("txtYourTextBox"); to get the TextBox.

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


这篇关于我如何...从gridview中的文本框中获取id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆