如何在服务器文件夹的网格视图中显示产品图像 [英] how to display the product image in grid view from server folder

查看:141
本文介绍了如何在服务器文件夹的网格视图中显示产品图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好先生


我想在服务器文件夹的网格视图中显示产品图像.

我会尝试这段代码

Hi Sir


I want to display the product image in grid view from server folder.

I ll try this code

string str = "Product Image Not Available";
       if (strArg.ToString().Trim() != "")
           str = "<img src='../productimage/" + strArg.ToString() + "'alt='../productimage/' />";
       return str;



但是,没有在gridview中显示产品图像,一件事产品图像将存储在图像文件夹中并插入表格.但是产品图片未显示在网格视图中.请重新输入代码



Bala



But, didnt show the product image in gridview and one thing product image will be stored on image folder and insert the tables also. but product image didnot display in grid view. please rpy the code

By

Bala

推荐答案

Bala,

请参考以下链接:

在gridview中显示图像 在Gridview中显示图像


VJ
Hi Bala,

Please refer to the below links:

Display images in gridview
Displaying Images from a Database in a GridView
Display image in Gridview


VJ


这篇关于如何在服务器文件夹的网格视图中显示产品图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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