A
anonymou
I have a .ascx (user control) where I am setting the
property:
Private m_schoolID As String
Public Property SchoolID() As String
Get
Return m_schoolID
End Get
Set(ByVal Value As String)
m_schoolID = Value
End Set
End Property
And trying to set the property after the following code in
a .aspx page
Dim template1 As ITemplate
Dim SchoolID As String
SchoolID = "123"
template1 = Page.LoadTemplate("Details.ascx")
template1.SchoolID = SchoolID
However my last line will not compile:
template1.SchoolID = SchoolID
I can't see why? please help
property:
Private m_schoolID As String
Public Property SchoolID() As String
Get
Return m_schoolID
End Get
Set(ByVal Value As String)
m_schoolID = Value
End Set
End Property
And trying to set the property after the following code in
a .aspx page
Dim template1 As ITemplate
Dim SchoolID As String
SchoolID = "123"
template1 = Page.LoadTemplate("Details.ascx")
template1.SchoolID = SchoolID
However my last line will not compile:
template1.SchoolID = SchoolID
I can't see why? please help