如何在gridview的编辑模板中获取html输入文本的值 [英] How to get the value of a html input text in edit template of a gridview

查看:87
本文介绍了如何在gridview的编辑模板中获取html输入文本的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个父网格和一个子网格,在编辑模板的子网格内有一个html输入文本控件,其属性为id,name,runat和value设置。



现在我正在尝试更新子网格的rowUpdate事件中控件中输入的值,但是当我尝试找到html输入文本控件并读取它给出的值时Null 或空字符串(即),而不是给出我输入的值。



请帮助我,

谢谢提前。

There is a parent grid and a child grid, inside the child grid in edit template there is a "html input text" control with the properties "id,name,runat and value" set.

now I'm trying to update the value entered in the control in the child grid's rowUpdate event, but when i try to find the "html input text" control and read the value it gives "Null" or empty string(i.e, "") instead of giving the value which i have entered.

Pls help me,
Thanks in advance.

推荐答案





参考文章: ASP.NET C#中的Gridview内部的网格视图


这篇关于如何在gridview的编辑模板中获取html输入文本的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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