我正在尝试从用户类访问母版页类的公共成员。
在我的母版页中,我有:
Partial Class MainDisplay
Inherits System.Web.UI.MasterPage
Public Shared m_test As Integer
...
在我的用户类中,我有:
Imports Microsoft.VisualBasic
Imports System.Web.UI.MasterPage
Public Class mytest
Public Function getValue() As Integer
Dim iRet As Integer = 0
iRet = Master.m_test ' how do i get access to the public member**
End Function
End Class
如何从用户类访问 m_test?
谢谢