Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
J

Jai Vikas Singh

@Jai Vikas Singh
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • displaying image in gridview from folder
    J Jai Vikas Singh

    Hi, I have to display images from a folder in imagefield. I am using following code but its not showing the image. Please help!

    DataTable dt = new DataTable();
    // dt.Columns.Add("S.No", typeof(string));
    dt.Columns.Add("NeckLace", typeof(string));
    DataRow dr;
    int i = 1;
    foreach (string file in Directory.GetFiles(Server.MapPath(@"NeckLace\")))
    {
    //string nm = Path.GetFileName(file);
    dr = dt.NewRow();
    // dr[0] = i.ToString();
    dr[0] = ResolveUrl(file);
    dt.Rows.Add(dr);
    i += 1;
    }
    GridView1.DataSource = dt;
    GridView1.DataBind();

    ASP.NET sysadmin help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups