programatic table get images in folder

Posted on 2011-10-31
Last Modified: 2012-05-12
I have programatic table and I need to know to the correct syntax to get files and pass them in my reader.

My.Computer.FileSystem.GetFiles("\\A3\images\\New_11-27-11") << does not work.

 While sqlDR.Read
                r = New TableRow ' << place here start new row
                c = New TableCell ' << place here start new table cell

                ' c.ID = cnt + 1
                c.Text = "<img src=""\\A3\images\\New_11-27-11.jpg""/>"

Question by:sevensnake77
    LVL 7

    Accepted Solution

    Using c.controls.add you can add image control programatically within the cell and then assign the image url to it. I guess this is the best way when you are performing everything programatically on server side.

    LVL 9

    Author Comment

    what about in this format

     img.ImageUrl = "~/image_upc"
                    img.Attributes.Add("onclick", "")

     img.ImageUrl = "imag.jpg"
    LVL 9

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    761 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

    12 Experts available now in Live!

    Get 1:1 Help Now