Answer: DirectCast is an an alternate way of Casting controls other than CType in VB.Net.
DirectCast is same as CType.
For Example:-
Dim lbl_employee_name As Label = DirectCast(e.Row.FindControl("lbl_employee_name"), Label)
Asked In: Many Interviews |
Alert Moderator