且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更新后,gridview图像列在asp.net中变为空c#

更新时间:2023-12-06 15:53:58

您好,

请通过以下链接:
在GridView中显示数据库中的图像 [ ^ ]
显示/存储并从数据库到Gridview检索图像数据,以及在鼠标悬停上 [ ^ ]
Hello,

Please go through below links:
Displaying Images from a Database in a GridView[^]
Display/Store and Retrieve Image Data from Database to Gridview, and also on Mouse Over[^]


您可以粘贴代码,该代码显示如何定义参数,以及SQL存储过程,这对于识别问题非常重要.

您需要在发送之前转换为字节流,这也可能会出错
Can you paste the code, which shows how parameters deined, also SQL Stored procedure which is very important to identify problem.

You need to convert to byte stream before sending, this can also go wrong


我猜您必须编写代码来绑定网格-我猜是丢失了.还有一件事是图像控件是否启用了ViewState?如果没有,请启用它.
I guess you have to write the code to bind the grid - which I guess is missing. And one more thing is that does the image control have the ViewState enabled? If not, please enable it.