vb.net 2008 asp.net function in app_code folder

i have a function (TestImg) called from an aspx:
<asp:Image ID="Image1" runat="server" ImageUrl='<%# TestImg(Eval("img1").ToString())%>' />
and i need to put this code in app_code folder in a vb file.
If the code is in current aspx.vb file for ex. default.aspx.vb al works well, but if i try put code in app_code folder don´t recogniza the function.
rflorencioAsked:
Who is Participating?
 
sm394Connect With a Mentor Commented:
try something like this

namespace.classname.TestImg(Eval("img1").ToString()

classname.TestImg(Eval("img1").ToString()

namespace.classname.functionName(Eval("img1").ToString()
0
 
Praveen VenuTechnical Project ManagerCommented:
Can you post the function
0
 
rflorencioAuthor Commented:
It looks like the following code works:

classname.TestImg(Eval("img1").ToString()
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.