Question Trying to compare data type

ryandailey21

New member
Joined
Jul 16, 2009
Messages
2
Programming Experience
1-3
I am trying to check whether an object is of a particular class type, or if it derives from a particular class type. I've tried to do this muliple ways. But have not had much success. I am using VB.NET.

Here is the code that am using:
If Me.Page.GetType() Is GetType(AALASWebsite.ContentPage) Then
hlPrintPage.Visible = False
End If
 
Back
Top