Property

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Property 1
Property Accessor Function Problem? 4
code runs but don't work? 13
Property 1
Please, help me. 1
Property 1
Multiple control templates with the same control names 0
Use property in custom control 1

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top