Solved

Database driven rotating images

Posted on 2012-03-12
1
132 Views
Last Modified: 2012-03-31
I have a user-maintained database containing records relating to buildings, and a number of images (2 - 5) of each building. I want to display rotating images of a selected building.

I know  there are asp.net controls that will do this (eg the Obout suite), but the website runs on a hosted server, so I cannot install these. I also know it can be done with javascript, but don't know how the image names be set dynamically from the database using asp.net (vb) code?

Any suggestions or help please?
0
Comment
Question by:slimguy
1 Comment
 
LVL 12

Accepted Solution

by:
Anuradha Goli earned 250 total points
ID: 37709315
I am just presenting you the logic to implement this scenario.
-------------------------------------------
Logic:::

string simages = <get all image names from database at once based on any condition you have and append all image names with "|" character>;

for loop
(
split  with character "|"  and take the strings and use;
)

-------------------------------------------
I hope my logic may help you .
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maxJsonLength exceeded error on ajax Post to ASP.NET MVC Controller Action method 5 126
getting id from database 5 37
Json and asp.net mvc 2 46
Class object 2 28
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now