如何获取webdatagrid中文本框的值?
我总是从网格的文本框中得到空值。这是我的点击事件的代码:
foreach (GridRecord row in wdgTroubleshootCreateEdit.Rows)
{
int workflowCATParameterId = Convert.ToInt32(row.Items[0].Value);
TextBox workflowCATParameterValue =
(TextBox)row.Items[value].FindControl("txtWorkflowCATParameterValue");
workflowCATParameterValue.text
始终为空
i always get a null value in a textbox from grid.here is my code on my click event:
foreach (GridRecord row in wdgTroubleshootCreateEdit.Rows)
{
int workflowCATParameterId = Convert.ToInt32(row.Items[0].Value);
TextBox workflowCATParameterValue =
(TextBox)row.Items[value].FindControl("txtWorkflowCATParameterValue");
workflowCATParameterValue.text
always null
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用的是最新的服务版本 11.2。我尝试过:
并且工作正常:),其中我的网格称为 WebDataGrid1,第一列是模板化的,其中包含名为 Text 的 TextBox:
我用 IE 9 测试过:)
I am with latest service release of 11.2. I tried:
and it works fine :) where my grid is called WebDataGrid1 and first column is templated containing TextBox named Text:
I tested it with IE 9 :)
通过 javascript 你可以做到这一点:
在你的 WebDataGrid 中你需要把这个:
By javascript you can do this:
And in your WebDataGrid you need to put this: