Looking at your comments I see your actually building a chat facility, which makes more sense regarding the continous requests every 5 seconds.
I would recommend using ASP.NET Web Methods and AJAX technology to achieve this.
Using jQuery.ajax
you can make a request every 5 seconds in javascript to return new chat messages
Something like the following would be a good start for your javascript/jquery:
setInterval(function () {
$.ajax({
url: "/Chat.asmx"
, type: "POST"
, contentType: 'application/json; charset=utf-8'
, data: '{ ConversationID: "' + ConversationID + '"}'
, dataType: 'json'
, success: function (data) {
//do something with data
}
});
}, 5000);
Chat.asmx would then be your Web Method. Look into ASP.NET Web Methods for more info:
http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/
A quicker method, but not as recommended, would be to use jQuery.load
where you could have the chat messages in a repeater on a standalone .aspx page and keep loading this into a div on your page like:
setInterval(function () {
$(".chatmessages").load("ChatConversation.aspx?id=" + ConversationID);
}, 5000);
See jQuery.load for more info on this