Click to See Complete Forum and Search --> : Little Project I am thinking about


Filbert Fox
January 30th, 2006, 06:40 PM
Hi Guru's, its been a while.....

I want to develop a project that would display an image gallery with a difference, the idea is to use timers on the server side to redraw the
control at given intervals (say 5 seconds), as I am very new to ASP I would like the clicks on the image to be delt by the server side also if possible...

I am also still devoloping in C++/MC++ mainly because I am that kind of coder but any ASP/ASP.NET code will do...

Regards

HairyMonkeyMan
February 1st, 2006, 07:27 AM
As far as I know, you cannot cause the client to refresh by sending a command from the server. Remember, the server only really recognises GET and PUT commands from the client.

You can (sort-of) manage the clicks on the server-side. Set the autopostback property of the image to true (use <asp:image...).

I would be possible to use a clientside timer made with javascript. i.e

var reloadTime = 5;
self.SetInterval('document.frmYourFormName.submit()', 60000 * reloadTime);


You could change the value in a hidden textbox on reload to get the id of the next image for example.

hope this helps....

ps, my javascript is pretty shakey