ユーザー クラスからマスター ページ クラスのパブリック メンバーにアクセスしようとしています。
私のマスターページには、次のものがあります。
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 にアクセスするにはどうすればよいですか?
ありがとう