You cannot use C # code to redirect after a certain time from the server side, since C # runs on the server side. You can do this by specifying a meta tag in your HTML:
<meta http-equiv="refresh" content="300; url=newlocation">
You can write C # code to create this tag. Here is an example:
HtmlMeta meta = new HtmlMeta(); HtmlHead head = (HtmlHead)Page.Header; meta.HttpEquiv= "refresh"; meta.Content = "300; url=newlocation"; head.Controls.Add(meta);
Abdel raoof
source share