单击拇指图像时显示图像和给定图像信息 [英] Display Image And Given Information About Image When Clicked On Thumb Image

查看:93
本文介绍了单击拇指图像时显示图像和给定图像信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.NET(c#)中,当我单击拇指图像时,原始图像应该显示另一页中关于图像的给定信息....

我有50个图像是否有..每次点击每个拇指图像然后每个原始图像和图像信息应该显示在另一个页面...所以为此现在我必须为每个图像和信息创建50页图像或任何简单的方法是否有我的查询...请帮助我..



先谢谢

In ASP.NET (c#), When I Click On Thumb Image,Then The Original Image Should Be Displayed With The Given Information About The Image In Another Page....
I have 50 images Are there..Each Time When I Am Clicking each Thumb image Then Each Original Image and Information About The Image Should Be displayed In Another Page...So for that now I Have To Create 50 Pages for The Each Image And Information About That image Or Any Simple Method Is there For My Query...Please Help Me..

Thanks In Advance

推荐答案

使用数据库的全部意义在于您可以使用数据库中的记录动态填充单页模板。



那样你就不用了必须为每条记录创建一个单独的页面!



您尝试的伪造代码如下...



The whole point of using the database is so that you can DYNAMICALLY populate a SINGLE PAGE TEMPLATE with the record from the database.

And that way you dont have to create an indivdual page for each record!

The psuedo code for what you are attempting is as follows...

1 - User clicks on thumbnail.
2 - Based on the thumnail clicked... The record is pulled from the database
3 - The data is bound to a request header and submitted to the TEMPLATE using a GET/POST method in a new window







注意:

我说了新窗口因为你声明它应该显示在另一个页面中。




Note:
I have said new window because you stated it should display in another page.


使用存储在数据库中的image_id使用转发器控制绑定图像,当你点击图像时,将image_id作为查询字符串传递,并根据image_id检索图像数据在第二页,你想要显示图像细节和图像。
Bind Images using repeater control by image_id stored in database and when u click on image pass image_id as query string and retrieve that image data according to image_id on second page where u want to show image details and image.


这篇关于单击拇指图像时显示图像和给定图像信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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