开发者

Finding a textbox inside InsertItemTemplate in Listview

开发者 https://www.devze.com 2023-01-24 04:51 出处:网络
I have tried this but it does not work: Dim txt As TextBox = CType(lv2.Items(lv2.SelectedIndex) _ .FindControl(\"txtCode\"), TextBox)

I have tried this but it does not work:

Dim txt As TextBox = CType(lv2.Items(lv2.SelectedIndex) _
    .FindControl("txtCode"), TextBox)

What is the solution plea开发者_JAVA百科se?


Dim txtCode As TextBox = _
      CType(lv2.InsertItem.FindControl("txtCode"), TextBox)
0

精彩评论

暂无评论...
验证码 换一张
取 消