如何在网页中查看图像 [英] how to view images in web page

查看:61
本文介绍了如何在网页中查看图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我在页面上有单独的datagrid和图像控件.
单击或聚焦在datagrid图像列上后,我想在图像控件中显示图像.
我已将图像和其他一些值存储在数据库中.
我能够从数据库中检索数据网格中的图像,但是我想在图像控件中的数据网格顶部单独查看图像.
有人可以指导我解决这个问题吗?请...

Hello,
I have separate datagrid and image control on the page.
I want to display images in the image control once i click or focus on datagrid image column.
I have stored images and some others values in database.
I am able to retrieve the images in the datagrid from database but i want to view image separately on top of datagrid in image control.
Could any one please guide me to solve this. Please...

推荐答案

希望这对您有帮助

http://stackoverflow.com/questions/466540/从网格视图中获取行索引索引 [
Hope this will Help you

http://stackoverflow.com/questions/466540/getting-row-index-from-an-imagebutton-click-in-a-gridview[^]


您好,请尝试在此
hello try like in this link
its a well known and very pretty image viewer for websites.
hope you enjoy it


您可以为此使用jquery并将图像地址添加到图像控件中:
如果这是您的html:
you can use jquery for this and add the image address to image control:
if this is your html:
    <form id="form1" runat="server">
    <div>
<![CDATA[<%--this is your image control that bind the grid image to it--%>]]>
        <img id="Image1" alt="image" />
<![CDATA[<%--You can put your grid in main div and get css class img to your grid images--%>]]>        
<div id="main"><img alt="image" class="img" src="DB.png" /> </div>
    </div>
    </form>


这是适合您的代码,将其放在页面标记中!


This is the right code for you, put it in your page markup!

<script type="text/javascript">


这篇关于如何在网页中查看图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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