How to Type cast controls?

 Posted by vishalneeraj-24503 on 12/23/2013 | Category: VB.NET Interview questions | Views: 2457 | Points: 40

With the help of CType method,we can cast any controls or any values.

For Example:-

Dim lbl_employee_id As Label = CType(e.Row.FindControl("lbl_employee_id"), Label)

Dim value As Integer = CType(12.05 * 12.05, Single)

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response