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




Reply With Quote