绕过中继器图像的加载 [英] bypass loading of repeater images

查看:77
本文介绍了绕过中继器图像的加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我从数据库加载图片的代码。

我使用转发器。

This is my code where i load images from the database.
I use a repeater.

<asp:Repeater ID="Repeater2" runat="server" DataSourceID="SqlDataSource1">
                <itemtemplate>
                        <asp:Image ID="Image1" ImageUrl='<%#GetImage(Eval("imageByte")) %>' runat="server" data-title="My Title" data-description="My Description"/>             
                </itemtemplate>



我使用galleria jquery插件来显示图像。


And i use the galleria jquery plug in to display the images.

Galleria.loadTheme('js/galleria/themes/classic/galleria.classic.min.js');                    
                    Galleria.run('.galleria', {
                        showInfo: true,
                        _toggleInfo: false
                    });



一切正常,但在加载galleria插件之前。

它显示在galleria插件显示之前从数据库中检索到的原始图像。



这对我的网站来说非常难看。

无论如何都要绕过加载原始图像?



请帮忙。


Everything is working fine, but before the galleria plug in is loaded.
It shows the raw images retrieved from the database before the galleria plug in displays them.

This is very ugly for my website.
Is there anyway to bypass the loading of the raw images?

Please help.

推荐答案

这篇关于绕过中继器图像的加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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