473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Changing Pictures On Page

I am new to .net technology. I have a home page built
for my company using asp.net. On the bottom of the home
page I want to embed a "dilbert comic strip" which is gif
format. I have the strips in the directory
c:/dilbert/"then by year for sub directories". I would
like to have the page change the picture randomly like
every 3 hours or so. Can this be done and if so how or
where could I find some good documentation on the proper
procedure or class to use.

Thanks in advance.
Nov 17 '05 #1
2 1230
There is an AdRotator control, but it changes with every page, not every
three hours.

here's the reference info:
http://msdn.microsoft.com/library/en...WebControl.asp

here's a working sample from the quickstart
http://samples.gotdotnet.com/quickst...doc_adrot.aspx
You could build your own "user control" based on the image control. When
the page loads, your user control can check the time of day and then select
a gif based on that.

image control example:
http://samples.gotdotnet.com/quickst...doc_image.aspx

-Dino
"brian" <br****@lbrspec.com> wrote in message
news:00****************************@phx.gbl...
I am new to .net technology. I have a home page built
for my company using asp.net. On the bottom of the home
page I want to embed a "dilbert comic strip" which is gif
format. I have the strips in the directory
c:/dilbert/"then by year for sub directories". I would
like to have the page change the picture randomly like
every 3 hours or so. Can this be done and if so how or
where could I find some good documentation on the proper
procedure or class to use.

Thanks in advance.

Nov 17 '05 #2
Brian,

One way of accomplishing this is :

Use 'CurrentDilbert.gif' on your page, then schedule a simple app to
randomly copy a file from c:/dilbert to CurrentDilbert.gif

Hope this helps.

Jurjen de Groot
G.I.T.S., Netherlands

"brian" <br****@lbrspec.com> wrote in message
news:00****************************@phx.gbl...
I am new to .net technology. I have a home page built
for my company using asp.net. On the bottom of the home
page I want to embed a "dilbert comic strip" which is gif
format. I have the strips in the directory
c:/dilbert/"then by year for sub directories". I would
like to have the page change the picture randomly like
every 3 hours or so. Can this be done and if so how or
where could I find some good documentation on the proper
procedure or class to use.

Thanks in advance.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raymond Dunton | last post by:
I am new to Javascript programming. I have a page with four small pictures. I want to click on a picture and have it open up larger in a popup window. this is what I am currently using to do...
1
by: David | last post by:
Hi, I have a webpage where I want to have a select list which the user can select between two different pictures, and then the chosen picture loads onto the html page, but without having to reload...
23
by: Wade | last post by:
08122005 1505 GMT-5 Hello. I am working on a webpage for the local school (just before school starts). Their outside hired company really screwed things up. Im trying to get their computers up...
3
by: Wade | last post by:
08242005 1416 GMT-5 Recently some of you helped me with a script to change images. Well I was asked to make a change to the script and not knowing if what the school system is even possible, Ill...
4
by: Doug van Vianen | last post by:
Hi, I have the following coding on a web page. It causes two pictures (pic1.jpg and pic2.jpg) to show, one above the other and then when one clicks on the top picture is squeezes to the left...
23
by: Doug van Vianen | last post by:
Hi, Is there some way in JavaScript to stop the downloading of pictures from a web page? Thank you. Doug van Vianen
13
by: Jim Carlock | last post by:
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I...
2
by: austinra | last post by:
i have a splash screen that i want to change a picture once a second for three seconds; then load my main form. what i want it to do is load a picture into a picture box; start a timer which will...
10
by: Anthony | last post by:
I am using the following code to display fading pictures on a team website. Can someone show me how to modify it such that I can display the names of each employee when the picture changes? This...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.