海珀旭辉:asp.net问题

来源:百度文库 编辑:高考问答 时间:2024/04/27 00:23:54
Dim userId As TextBox = CType(myTable.Rows(myTable.Rows.Count - 1).Cells(0).Controls(1), TextBox)
这是什么意思呀.高手指点.谢谢
ctype是干什么的

CType 是类型转换
你看:

CType(..., TextBox)
就是把 ... 转换成 TextBox 类型。