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)
精彩评论