I have a function in my ascx.vb page that i need to be called from the ascx page. However, I get an error that says its "not declared and may be inaccessible due to its protection level".
I am thinking that for some reason the functions of my ascx.vb page cant be seen from my ascx page.
I actually have this code working in aspx pages without a namespace. Anyone know what is causing this error?
The ascx.vb namespace portion reads like:
Namespace StaffLookup
Public Class Main
Inherits PortalModuleBase
Then the function in ascx.vb is like this:
Public Function ProcessPictures() As String
Return "http://info/scripts/personnel/IDVerify/BadgePictures/transparent.jpg"
End Function
The call in ascx is like this:
<img src='<%# ProcessPictures()%>' />