I have an application class method defined as follows:
Public Class AppHelper
Public Shared Function MyFunction(ByVal sInput As String)
Return "MyFunction." & sInput
In my markup I want to do something like this:
<%# AppHelper.MyFunction(DataBinder.Eval(Container.DataItem, "MyField")) %>
But building the application says AppHelper is not defined. If I change the call to just MyFunction(...), it says MyFunction is not defined. I can get around this by moving the function to the base page class but is there any way to call it directly from the AppHelper class?
Thanks in advance.