I have a class called ApplesBase:
VB Code:
  1. Public Class ApplesBase
  2.     Inherits System.Web.UI.Page
  3.  
  4.     Public Sub New()
  5.        Call LinkToApples
  6.     End Sub
  7.  
  8.     Private Sub LinkToApples()
  9.         'code here to do stuff
  10.     End Sub
  11. End Class
My web pages now inherit from this:
VB Code:
  1. Public Class EnteringSite
  2.     Inherits ApplesBase
  3.  
  4.     'code for web page
  5. End Class
Now in the function LinkToApples I want something like:
VB Code:
  1. Private Sub LinkToApples()
  2.     If NoPermissions Then
  3.        Response.Write "Woof"
  4.     End If
  5. End Sub
This is not possible to use the response object in this sense, inside an inherited class that is.
I could I suppose redirect to another page, but I don't want to do this.

Any ideas?

Woof