how to create auto refresh in asp.net

Posted by Macson under ASP.NET on 6/23/2009 | Views : 8921 | Status : [Member] | Replies : 8
i have conneted my web site in lan so when i enter in first machine i have to display tht record in lan machine also for tht i have to type f5 for refresh but now i want auto refresh




Responses

Posted by: Prabhakar on: 1/27/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Vuyiswamb


use timer & write refresh time Timer1_Tick event


Thanks & regard's
Prabhakar

Best Regard's
Prabhakar

Macson, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naveen7in on: 1/27/2011 [Member] Starter | Points: 25

Up
0
Down
<meta http-equiv="refresh" content="1" />
This makes page autorefresh for very 1 sec...

Macson, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/27/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

To auto refresh in .net you can use the timer control.

void timer_Tick(object sender, EventArgs e)
{
//do your refresh here
}


Thanks
Karthik
www.f5Debug.net

Macson, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sathya4260 on: 1/29/2011 [Member] Starter | Points: 25

Up
0
Down
see this

http://www.dotnetfunda.com/codes/code1159-refresh-or-reload-the-aspnet-page-automatically.aspx

Sathish Kumar S

Macson, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/29/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Check this if its useful for you

http://www.dotnetfunda.com/forums/thread3434-how-to-make-a-page-refresh-automatically-without-using-a-timer-control.aspx

Thanks
Karthik
www.f5Debug.net

Macson, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 6/23/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Morning Macson

Your Question is not Clear to me. Can you please take your time and explain your problem and what you are trying to achieve

Thank you for Posting at Dotnetfunda

Were looking Forward for your Reply.


Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Macson, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jagadish97 on: 6/30/2009 [Member] Starter

Up
0
Down
use
Response.Redirect ( url );


Macson, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakhangarg on: 8/31/2009 [Member] [Moderator] Silver

Up
0
Down
Hi-
Use JavaScript's SetTimeOut Function Like this:

SetTimeOut(5000, window.location.reload(true););
This will refresh the page after every 5 second
call this on body load event.

May this will help you..

Thanks & Regards
Lakhan Pal Garg
http://lakhangarg.blogspot.com/



Macson, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response