• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

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.
0
rflorencio
Asked:
rflorencio
1 Solution
 
sm394Commented:
try something like this

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

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

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

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

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now