I can't use a Local Resource value

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
 

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

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,216
Latest member
topweb3twitterchannels

Latest Threads

Top