Solved 2008 function in app_code folder

Posted on 2009-02-11
Last Modified: 2012-05-06
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.
Question by:rflorencio
    LVL 13

    Accepted Solution

    try something like this



    LVL 15

    Expert Comment

    by:Praveen Venu
    Can you post the function

    Author Comment

    It looks like the following code works:


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now