使用文件夹中的数据表绑定图像 [英] Bind images using data table from the folder

查看:67
本文介绍了使用文件夹中的数据表绑定图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  private  void PopulateImage()
{
DataTable dt = new DataTable();
List< ListItem> files = new List< ListItem>();
foreach( string filePath in filePaths)
{

这里我需要从文件夹
}逐个显示图像


GridView1.DataSource = dt;
GridView1.DataBind();
}







怎么办?

我们将不胜感激。

解决方案

您好,

参考:使用SQL中存储的路径在GridView控件中显示图像服务器数据库





另一个链接:

从ASP.NET中的文件夹中显示GridView中的图像

private void PopulateImage()
    {
DataTable dt = new DataTable();
 List<ListItem> files = new List<ListItem>();
        foreach (string filePath in filePaths)
        {  

"here i need to display the image one by one from the folder"
}
  

GridView1.DataSource = dt;
GridView1.DataBind();
    }




How to do?
Any help will be appreciated.

解决方案

Hello ,
Refer : Display Images in GridView Control using the path stored in SQL Server database


another link :
Display Images in GridView from folder in ASP.NET


这篇关于使用文件夹中的数据表绑定图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆