How can I check if a datatable has never been set ? or Null or Nothing ? I don't mean empty Datatable ... For example,
Dim dt As DataTable = TryCast(Session("dt"), DataTable)
If dt.Rows.Count <> 0 Then
Do something !
Object reference not set to an instance of an object.