Link to home
Start Free TrialLog in
Avatar of rp
rpFlag for Portugal

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Faizan Sarwar
Faizan Sarwar
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you post the function
Avatar of rp

ASKER

It looks like the following code works:

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