在文本框中什么也没得到 [英] getting nothing in textbox

查看:64
本文介绍了在文本框中什么也没得到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
我有一个gridview控件,其中有一个包含文本框的列,但
当我提交这个gridview数据时,在ctype到那个文本框时我什么也没得到.

以下是我的代码

Dear All,
I have an gridview control where there is a column includes textboxes but
when i submit this gridview data , i am getting nothing while ctype to that textbox.

Below is my code

Dim txtbox As TextBox
        
        Dim SetControlValue As String = ""





txtbox = CType(row.FindControl("gv_NominatedBLDetails__ctl2_txtmbl_no"), TextBox)
                    SetControlValue = txtbox.Text



对于该txtbox,我什么也收不到.

请帮帮我..........



i am getting nothing for that txtbox.

Please help me out..........

推荐答案

尝试以下操作:
Try this:
txtbox = CType(row.FindControl(Me.gv_NominatedBLDetails.ClientID), TextBox)
SetControlValue = txtbox.Text



希望能帮助到你.让我知道.



Hope it helps. Let me know.


这篇关于在文本框中什么也没得到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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