.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > Page re-load
 

Page re-load

I have an aspx page that displays rotating images. Each time a new image rotates into view the host database has to be updated (once every ten seconds). We do this by using window.location.href to access the host from the javascript. The problem is that the page_load event fires which causes the images to reload. The result is a flashing sort of display between images vs. a smooth rotation.

Is there some way to update the host database that does not reload the page?
ss9491
Ankit,

The poster wants to update the database when the image is changed. That cant be done via the Adrotator control.


Ganesh Ranganathan
[Please mark the post as answer if you find it helpful]
Ganesh Ranganathan - Bangalore, India

You can do that via AJAX.

If you need only the basic functionality then you can use AJAX controls. You can access the Controls toolkit at www.asp.net/ajax . There are videos which explain the process.


If you need more control, you can write your custom javascript code for communicating with the server without a refresh.


Ganesh Ranganathan
[Please mark the post as answer if you find it helpful]
Ganesh Ranganathan - Bangalore, India
HI ,

Try to use Adrotatot control that will help you out,

Regards,
Ankit
ANKIT BHATNAGAR
ANKIT BHATNAGAR
Ankit,

The poster wants to update the database when the image is changed. That cant be done via the Adrotator control.


Ganesh Ranganathan
[Please mark the post as answer if you find it helpful]
Ganesh Ranganathan - Bangalore, India

You can use google to search for other answers

Custom Search

More Threads

• javascript and AOL emails
• jQuery in visual studio 2008
• OnKeyPress
• Detect selection change? IE6
• mousewheel event
• Javascript Snippet to C#/VB.Net
• Answer to my question
• problems w. jscript
• Clear Header and footer From Page SetUp
• Can I use javascript to get the contact infomation in Outlook Express?