Page output display must be refreshed?

R

Roy Chastain

I have the following simple aspx page hosted on a Win2k server with version 1.0 of the framework

<%@ Page Language="C#" debug="true" %>
<script runat="server" language="C#">
void Page_Load (object sender, System.EventArgs e)
{
Response.Write("value of email_return is " + ASP.global_asax.EmailReturn);
}
</script>
<HTML>
<HEAD>
<TITLE>Subscribe</TITLE>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<meta content="FrontPage.Editor.Document" name="ProgId">
<link rel="stylesheet" type="text/css" href="Colors.css">
</HEAD>
<body>
</body>
</html>

When display this page with IE 6.0 SP1 on a Win2K system it works except of one little thing.
The output displayed in the IE window does not change from the previous output until I do something to cause Windows to refresh the IE
window. Example minimizing and then restoring the IE window or even just running the mouse of the part of the window that has text in it
will cause the text to update to the new output.

I don't think this is expected behavior. Could someone point me to the error of my ways?

Thanks
 
D

David Jessee

I'm not sure, but I'd say that the problem would be that your page is
generating invalid html. If you look at your page's source, it probably
looks something like:

value of email_return is abcde
<HTML>
<HEAD>
<TITLE>Subscribe</TITLE>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<meta content="FrontPage.Editor.Document" name="ProgId">
<link rel="stylesheet" type="text/css" href="Colors.css">
</HEAD>
<body>
</body>
</html>




Roy Chastain said:
I have the following simple aspx page hosted on a Win2k server with version 1.0 of the framework

<%@ Page Language="C#" debug="true" %>
<script runat="server" language="C#">
void Page_Load (object sender, System.EventArgs e)
{
Response.Write("value of email_return is " + ASP.global_asax.EmailReturn);
}
</script>
<HTML>
<HEAD>
<TITLE>Subscribe</TITLE>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<meta content="FrontPage.Editor.Document" name="ProgId">
<link rel="stylesheet" type="text/css" href="Colors.css">
</HEAD>
<body>
</body>
</html>

When display this page with IE 6.0 SP1 on a Win2K system it works except of one little thing.
The output displayed in the IE window does not change from the previous
output until I do something to cause Windows to refresh the IE
window. Example minimizing and then restoring the IE window or even just
running the mouse of the part of the window that has text in it
 
R

Rick Spiewak

Since the value in question is apparently being changed asynchronously
outside of your page, this would be the expected behavior. Unless something
causes the Page_Load event to trigger, your page won't do anything.

Roy Chastain said:
I have the following simple aspx page hosted on a Win2k server with version 1.0 of the framework

<%@ Page Language="C#" debug="true" %>
<script runat="server" language="C#">
void Page_Load (object sender, System.EventArgs e)
{
Response.Write("value of email_return is " + ASP.global_asax.EmailReturn);
}
</script>
<HTML>
<HEAD>
<TITLE>Subscribe</TITLE>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<meta content="FrontPage.Editor.Document" name="ProgId">
<link rel="stylesheet" type="text/css" href="Colors.css">
</HEAD>
<body>
</body>
</html>

When display this page with IE 6.0 SP1 on a Win2K system it works except of one little thing.
The output displayed in the IE window does not change from the previous
output until I do something to cause Windows to refresh the IE
window. Example minimizing and then restoring the IE window or even just
running the mouse of the part of the window that has text in it
 
R

Roy Chastain

Does the Page_Load event not fire when I reference the page in the browser. The value is being changed BEFORE I reference the
page. Once I reference the page, the little IE flag waves and then quits waving. At that point, if I move my mouse across the
text it INSTANTLY changes. (No time for a round trip to a remote IIS server)
 
R

Rick Spiewak

That does seem odd. I wonder if this behavior is caused by using an
integrated page. Try putting the code in the code-behind, just for fun.
 
R

Roy Chastain

I can't get code behind to work on the hosing service (Earthlink) that my client has chosen. I keep running into CAS errors trying to read
MACHINE.CONFIG. (No, I am not trying to read machine.config, this happens when my application gets initialized and I have code in
global.asax that reads config info from web.config.

I see that you are a mindspring customer. Have you done any asp.net stuff on their hosting service?

Thanks
 
R

Rick Spiewak

I haven't used earthlink for ASP.NET, I use a local provider - ACOM
hosting. I have a couple of sites running there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top