'''
''' Override the default behaviour of the LoadData().
'''
Public Overrides Sub LoadData()
' Call MyBase.LoadData()
MyBase.LoadData()
If Me.DataSource Is Nothing Then
' If no records found then, redirect to the page of your choice
Me.Page.Response.Redirect("../OtherPages/SomeOtherPage.aspx")
End If
End Sub
|