从数据库动态在网站标题中显示图像 [英] Show image in website header dynamically from database

查看:74
本文介绍了从数据库动态在网站标题中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生,
我想动态显示标题图像.我所有的图像都保存在一个文件夹中,并且路径和图像名称都在sql数据库中.
图像将定期更改.我有Java脚本功能.
但是我无法在标题中显示图像.

请任何人帮助我...

谢谢

hello sir,
i want to show the header image dynamically. my all image save in a folder and path and image name in sql database.
The images will change periodically. i have Java script function for it.
But i am not able to show image in header.

please anybody help me...

Thanks

推荐答案

对于您的要求,您需要在asp.net中使用AdRotator控件.不要浪费时间使用图像控件和逻辑来定期更改图像URls.

请参阅这些链接
http://www.w3schools.com/aspnet/control_adrotator.asp [使用背后的ASP.NET代码的AdRotator [ http://support.microsoft.com/kb/305035 [ http://www.tutorialspoint.com/asp.net/asp.net_ad_rotator.htm [ ^ ]
For your requirements you need to use the AdRotator control in asp.net. Do not waste your time in using the Image Control and the logic to change the image URls periodically..

Refer these links
http://www.w3schools.com/aspnet/control_adrotator.asp[^]
AdRotator Using ASP.NET Code Behind[^]
http://support.microsoft.com/kb/305035[^]
http://www.tutorialspoint.com/asp.net/asp.net_ad_rotator.htm[^]


这篇关于从数据库动态在网站标题中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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