S
shapper
Hello,
I have a page class and inside it I have a ITemplate class to create
the item template of a repeater:
Partial Class Contacts
Inherits System.Web.UI.Page
Private Class myTemplate
Implements ITemplate
...
Private Sub()
MyLabel.Text =
Me.GetLocalResourceObject("MyLabel.Text").ToString() *****
End Sub
...
End Class
End Class
My problem is that in line ***** I get an error when trying to access a
local resource:
"GetLocalResourceObject is not a member of Page.myTemplate"
So basically I can use my local resources in my page class but not in a
class inside it.
How can I solve this problem?
Thanks,
Miguel
I have a page class and inside it I have a ITemplate class to create
the item template of a repeater:
Partial Class Contacts
Inherits System.Web.UI.Page
Private Class myTemplate
Implements ITemplate
...
Private Sub()
MyLabel.Text =
Me.GetLocalResourceObject("MyLabel.Text").ToString() *****
End Sub
...
End Class
End Class
My problem is that in line ***** I get an error when trying to access a
local resource:
"GetLocalResourceObject is not a member of Page.myTemplate"
So basically I can use my local resources in my page class but not in a
class inside it.
How can I solve this problem?
Thanks,
Miguel