开发者

Finding a textbox inside InsertItemTemplate in Listview

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜