Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/364.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/319.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
Javascript 灯光滑块数据缩略图图像路径未使用Eval()从数据库绑定_Javascript_C#_Jquery_Asp.net_Repeater - Fatal编程技术网

Javascript 灯光滑块数据缩略图图像路径未使用Eval()从数据库绑定

Javascript 灯光滑块数据缩略图图像路径未使用Eval()从数据库绑定,javascript,c#,jquery,asp.net,repeater,Javascript,C#,Jquery,Asp.net,Repeater,我使用jQuery Light Slider和repeater控件来显示数据库中的图像,如下所示: <ul id="imageGallery"> <asp:Repeater ID="rpImage" runat="server"> <ItemTemplate> <li data-thumb='<%# "~/Images/"+Eval("imgImagePath") %>'>

我使用jQuery Light Slider和repeater控件来显示数据库中的图像,如下所示:

<ul id="imageGallery">
    <asp:Repeater ID="rpImage" runat="server">
        <ItemTemplate>
            <li data-thumb='<%# "~/Images/"+Eval("imgImagePath") %>'>
                <asp:Image ID="img" CssClass="image-width"
                    ImageUrl='<%# "~/Images/"+Eval("imgImagePath") %>' runat="server" />
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
如何解决上述问题

任何帮助都将不胜感激

简单地使用

  • 谢谢您的回答:)
    data-thumb='<%# "~/Images/"+Eval("imgImagePath") %>'