how to refresh the page in asp.net tell me codebehind

Posted by Nadh123 under ASP.NET on 11/23/2012 | Points: 10 | Views : 36708 | Status : [Member] | Replies : 4
how to refresh the page in asp.net tell me codebehind

Mahendra
91-9908699686



Responses

Posted by: Sandhyab on: 11/24/2012 [Member] Starter | Points: 25

Up
0
Down
<asp:button ID="Button1" runat="server" text="Button" OnClick="Refresh_Click" />

In Code Behind:
protected void Refresh_Click(object sender, EventArgs e)

{
Page.Response.Redirect(HttpContext.Current.Request.Url.ToString(), true);
}


Thanks & Regards

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

Posted by: Nadh123 on: 11/24/2012 [Member] Starter | Points: 25

Up
0
Down
with out user interaction

Mahendra
91-9908699686

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

Posted by: Naidulaxmi on: 11/24/2012 [Member] Starter | Points: 25

Up
0
Down
hi,

use this code page load:
Response.Expires = 0
Response.Buffer = True
Response.Clear
Response.AddHeader "Refresh", "10"

Thanks

appalanaidu

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

Posted by: Nkkppp on: 11/25/2012 [Member] Starter | Points: 25

Up
0
Down
Use this meta tag in html

<meta http-equiv="refresh" content="value">

value is in seconds

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

Login to post response