|
| refresh probelm in ASP.NET? |
 |
Thu, 3 Apr 2008 11:46:55 +0000 |
Hi,I am creating web application. This application contains LIVE streaming
data(i.e second by second). For that i want to refresh page, so i add html code
<metahttp-equiv="Refresh"content="2"/>. This will
refresh after 2 seconds.
If i refresh then only i will receive data.
This data displays in GRIDVIEW. I wrote all the code in Page_Load.
I wrote a condition like comparing two columns, when this condition satisfied
display message in LABEL. When time of refresh this message also disappear.
I want to display a message for 10 seconds.
How to display that.
help me anyone.....
|
| Post Reply
|
| Re: refresh probelm in ASP.NET? |
 |
Thu, 3 Apr 2008 14:26:03 +0000 |
This is helpfull to me. Thanks
In my design page update panel control not moving, How to move.
And i am unable arrange all the controls properly, becus its not moving.
Give me the way to do this. . .
|
| Post Reply
|
| Re: refresh probelm in ASP.NET? |
 |
Thu, 3 Apr 2008 15:30:19 +0000 |
I'm sorry, I don't think I understand what you mean by moving the UpdatePanel.
It's drag and drop in design mode. Have you tried editing the layout in the
source code? This may be a good alternative if you can't arrange the layout how
you'd like it in design mode.
|
| Post Reply
|
| Re: refresh probelm in ASP.NET? |
 |
Thu, 3 Apr 2008 15:46:06 +0000 |
I think the best solution for this would be to use the asp.net Ajax Timer
control.
http://www.asp.net/AJAX/Documentation/Live/tutorials/IntroToTimerControl.aspx
Once your condition is met, you could programmitically increase the timer
interval to 10 seconds (Timer1.Interval = 10) when you display your message in
the label.
|
| Post Reply
|
| Re: refresh probelm in ASP.NET? |
 |
Thu, 3 Apr 2008 15:57:59 +0000 |
try this in the code side..
// To Refresh the page automatically after every (10 seconds).
Response.AppendHeader("Refresh", "10;URL=WebForm2.aspx");
// ten seconds..
|
| Post Reply
|
|
|
|
|
|
|
|
|
|