473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can't refresh an .aspx page

I've been trying to put an automatic 20 second refresh on an .aspx page
(that derives from a mobilewebform in VisualStudio.Net and MMIT), but
none of the below work :

<HEAD>
<NOSCRIPT>
<META HTTP-EQUIV="Refresh" CONTENT="20; URL=main.aspx">
</NOSCRIPT>
</HEAD>
<BODY onload=setTimeout("location.href='main.aspx'",1000 0)>

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

----
C#
(in private void Page_Load(object sender, System.EventArgs e)
{

if (!Page.IsPostBack)
//{
// PopulateFields();
//}

Response.AppendHeader("Refresh", "20; URL=main.aspx");
}

Nov 19 '05 #1
2 3391
A few obivous suggestions.

Select one option only i.e the following would work (I just checked)

<META HTTP-EQUIV="Refresh" CONTENT="2;url=http://localhost/default.aspx">

Why are you use appendheader. If you want to dynamically add the line then
place a literal control in the page and set it from the page load event.

Other suggestions would be check that you do not have a firewally preventing
pages loading automatically and also that the path is correct.

HTH

Alex
Nov 19 '05 #2
A few obivous suggestions.

Select one option only i.e the following would work (I just checked)

<META HTTP-EQUIV="Refresh" CONTENT="2;url=http://localhost/default.aspx">

Why are you use appendheader. If you want to dynamically add the line then
place a literal control in the page and set it from the page load event.

Other suggestions would be check that you do not have a firewally preventing
pages loading automatically and also that the path is correct.

HTH

Alex
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andrew Alger | last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button on Customer.aspx that when executed runs javascript code to open up parent_search as a popup. After the user searches...
8
by: Judy Ward | last post by:
I have an index.aspx with frames. The top frame has a navigation bar with a "Login" hyperlink. If the user has already logged in I want this link to change to "Logout". I am using forms-based...
2
by: Jaikanth Sithambaranathan via .NET 247 | last post by:
The problem is in the result page in which i can scroll throughthe contents of the result set 100 at a time. I call the resultpage from a filter page where i accept filter on results to bedisplayed....
2
by: Charles A. Lackman | last post by:
Hello, I have an ASPX page that is storing data into a session Variable: Session("Name") = "Chuck" When the User clicks "Next" on the page, it naviages to "Details.aspx", Details.aspx has two...
4
by: Anna S | last post by:
Hi all, I have an aspx page that opens with some parameter (mypage.aspx?idclient=1). Next, I have a dropdown list on this page that lets select the new value of parameter idclient. Than I just...
5
by: Nathan Sokalski | last post by:
I have a FormView control in which I use a PagerTemplate. I am having trouble accessing the controls in the PagerTemplate. How do I access them, and in what event should I put the could that...
5
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I used the following code to refresh the parent page, and it works very well (Thanks to Peter Bromberg "). Response.Write("<script language='javascript' type='text/javascript'{...
7
by: seanmatthewwalsh | last post by:
Hi I have a page (default.aspx) that pulls it's HTML from a database. I then have a "content management" page (editpage.aspx) that allows the user to edit the HTML in the database. When the...
2
by: qwedster | last post by:
Folks! The following is a "Hello World" kind of code for ViewState. I just want to know how to retain the ViewState 1) while Page Refresh when using UpdatePanel and also 2) While I reverting back...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.