在asp.net中添加旋转器 [英] ADD ROTATOR in asp.net

查看:67
本文介绍了在asp.net中添加旋转器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,广告轮播者使用域中der的xml文件
但是我的要求是,它可以将XML内容作为dataset.readxml方法读取,而不是
使用现有的xml文件xml shud中的数据根据​​后端而有所不同n我不希望2生成xml文件
每隔n个
请建议我是否有解决方案

Normally ad rotator uses xml file which is der in domain
but my requirement is such that it can read xml content as dataset.readxml method rather than
using existing xml file the data in xml shud vary according to backend n i dont want 2 generate xml file
every now n then
pls suggest me if u got any solution

推荐答案

似乎您可以设置DataSourceDataSourceID属性:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.adrotator_properties.aspx [ ^ ]

设置这两个属性之一将使您可以向AdRotator提供Xml文件以外的其他内容.也许像这样:

http://msdn.microsoft.com/en-us/library/ms227550.aspx [ ^ ]
It looks like you can set the DataSource or DataSourceID properties:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.adrotator_properties.aspx[^]

Setting one of these two properties will enable you to feed the AdRotator with something other than an Xml file. Like this perhaps:

http://msdn.microsoft.com/en-us/library/ms227550.aspx[^]


请参阅此链接,希望对您有所帮助

http://msdn.microsoft .com/en-us/library/system.web.ui.webcontrols.adrotator.render(v = vs.80).aspx [
Refer this link, hope it helps

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.adrotator.render(v=vs.80).aspx[^]




如果您想使用Jquery,将很容易满足您的要求.

基于后端,这意味着您将维护一个数据库表以正确使用add rotator,在这种情况下,您将在数据库表中存储该添加图像或swf文件的URL.

现在,您可以阅读这些网址并将其发送到浏览器,以便在jQuery中旋转这些图片.使用javascript中的一些重复方法.


另一种方法是读取现有的xml文件并在分配该xml以添加旋转器控件之后基于数据库更新该xml.


尝试任何一种方式如果发生错误,请使用代码发布您的疑问.这样可以更好地解决您的问题.

一切顺利
Hi,

If you want to use Jquery it''ll be easy to do your requirement.

Based on backend means you are maintaining one database table for add rotator right in this case you are storing urls of that add image or swf files in database table.

Now you can read those urls and send them to browser to rotate those images in jquery.using some repeated methods in javascript.


And another way is reading existing xml file and updating that xml based on database after that assigning that xml to add rotator control.


Try anyone way If error occur post your doubt with code .that can better to solve your problem.

All the best


这篇关于在asp.net中添加旋转器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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