无法从gridview内的动态创建的文本框中检索数据 [英] Unable to Retrieve Data from dynamically created textbox inside the gridview

查看:70
本文介绍了无法从gridview内的动态创建的文本框中检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也有同样的问题...

我无法从gridview中的动态创建的文本框中检索数据。

你有任何解决方案。 ..

请帮助我..如果有任何其他可能的手段...

解决方案

试试这个..



这对你有帮助,我和它一起工作......工作正常..



  foreach (GridViewRow row  in  gvItems.Rows)
{
String Str = Convert.ToString(((TextBox)row.FindControl( TextboxID))文本)。
}





如果这个一个没有帮助你,然后把你的代码放在这里,'  s不工作..或者更具体的关于你的问题 


I'm also got same problem...
i'm not able to retrieve data from dynamically created textbox inside the gridview.
you got any solution...
please help me.. if any other possibility having means...

解决方案

Try this..

this will help you, i worked with it..working fine..

foreach (GridViewRow row in gvItems.Rows)
{
String Str=Convert.ToString(((TextBox)row.FindControl("TextboxID")).Text);
}



If this one not helping you, then place your code here, which's not working..or be more specific about your problem.


这篇关于无法从gridview内的动态创建的文本框中检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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