Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
图像未显示在数据库Visual Studio asp.net的Listview中_Asp.net_Visual Studio 2013 - Fatal编程技术网

图像未显示在数据库Visual Studio asp.net的Listview中

图像未显示在数据库Visual Studio asp.net的Listview中,asp.net,visual-studio-2013,Asp.net,Visual Studio 2013,我对VisualStudio和.net还不太熟悉。所以我基本上是想从一个连接的数据库中获取一个图像。我有所有的信息,只是没有显示图像。下面是查看是否有人可以更正错误所需的代码。这可能很简单,但正如我所说,我对这一切都是新手 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString='<%$ ConnectionStrings:photochunkConnectionString %>' Sele

我对VisualStudio和.net还不太熟悉。所以我基本上是想从一个连接的数据库中获取一个图像。我有所有的信息,只是没有显示图像。下面是查看是否有人可以更正错误所需的代码。这可能很简单,但正如我所说,我对这一切都是新手

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString='<%$ ConnectionStrings:photochunkConnectionString %>' SelectCommand="SELECT [PhotoName], [Details], [Image], [UploadDate], [PhotoTypeID] FROM [Photos] ORDER BY [UploadDate]"></asp:SqlDataSource>

<asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
    <AlternatingItemTemplate>
        <span style="">PhotoName:
            <asp:Label Text='<%# Eval("PhotoName") %>' runat="server" ID="PhotoNameLabel" /><br />
            Details:
            <asp:Label Text='<%# Eval("Details") %>' runat="server" ID="DetailsLabel" /><br />
            Image:
            <asp:Image ImageURL='<%# Eval("Image") %>' runat="server" ID="ImageLabel" Width="200px" /><br />
            UploadDate:
            <asp:Label Text='<%# Eval("UploadDate") %>' runat="server" ID="UploadDateLabel" /><br />
            PhotoTypeID:
            <asp:Label Text='<%# Eval("PhotoTypeID") %>' runat="server" ID="PhotoTypeIDLabel" /><br />
            <br />
        </span>
    </AlternatingItemTemplate>

照片名称:

细节:
图片:
上载日期:
照片类型ID:


图像是字符串,即URL还是图像的实际二进制内容?@JamesMcLachlan“图像”是数据库中的列名我的意思是数据库中的值是什么类型的数据?