如何将数据列表中的图像重定向到另一个页面. [英] how to redirect the images in datalist to another page.
本文介绍了如何将数据列表中的图像重定向到另一个页面.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的数据列表中有一些图像来自数据库..
我想对数据列表中的图像进行点击操作,以将其重定向到另一页.
我不知道该怎么做.我是新手.请帮助我
i have some images in the datalist coming from the database..
i want to put click action on the images in datalist to redirect them to another page.
i don''t know how to do it.. i am new.. pls assiste me
推荐答案
尝试这种方式:
如果仅在数据库中保存图像文件名,请执行以下操作:
Try this way:
If you are saving only image file name in your DB then do this way:
//In item template, you can link image as:
<a href="<%# " yourid=") %>">
<img src="your image path" alt="alt text" />
</a>
或者,如果要将图像保存到数据库中,请阅读文章:
http://www.ezzylearning.com/tutorial.aspx?tid=1399196 [ ^ ]
OR if you are saving image into DB then read articles:
http://www.ezzylearning.com/tutorial.aspx?tid=1399196[^]
这篇关于如何将数据列表中的图像重定向到另一个页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文