Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

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[^]
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900