Posted on: 5/28/2011 3:12:16 AM | Views : 500

I have this in my aspx page:
<%@ Page Language="VB" CodeBehind="news.aspx.vb" Inherits="Site.News" MasterPageFile="Site.master" %> <script runat="server"> Protected ReadOnly Property newsDocsBasePath As String Get Return MyBase.newsDocsBasePath End Get End Property </script>


and this in the code-behind:
Partial Class News Inherits SimplePage Public ReadOnly Property newsDocsBasePath() As String Get Return "./downloads/nieuws/" End Get End Property End Class

However, MyBase.newsDocsBasePath gives a compile error that 'newsDocsBasePath' is not a member of 'System.Web.UI.Page'. What can I do to make non-shared properties and methods of thein the codebehind visible in the aspx? With shared methods it's easy, you can use eg.:
Over ...

Go to the complete details ...