Q:

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. 
The value of that site is changing continuously. 
I want that my div will automatically update in some interval time. 
How can i do this.  

A:

$(document).ready(function() {
        var refreshId = setInterval(function()
        {
             $('#main').fadeOut("slow").load('Default.aspx').fadeIn("slow");
        }, 50000);
        });

A:

Sorry for the bug.   setTimeout is used as opposed to setInterval to accomodate for any delay that may occur in the AJAX request. 
var to;
$(function() {
    // initialize timer to update div every 5 seconds
    to = setTimeout(updateDivContent, 5000);
});

function updateDivContent() {
    // make your AJAX/LOAD request for the data here to populate div
    $('#mydivcontainer').empty().load('myAspFileToGrabExternalData.aspx', null, function() {
        // reset the timer to grab the content in another 5 seconds
        to = setTimeout(updateDivContent, 5000);
    });
}

You can read up on jQuery's load method here.