G
Guest
HI,
Can someone explain to me why the
<meta http-equiv="refresh" content="5"/> will not work for me?
I use it in a standard asp page and it works just fine.
Why in ASP.NET2.0 it doesn't. I don't get any errors, it simply does not
trigger the page_load event after 5 seconds.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" EnableSessionState="True" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>test</title>
<meta http-equiv="refresh" content="5"/>
</head>
<body>
</body>
</html>
CODE
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Server.MapPath(getPDFName()).ToString)
Response.Flush()
Response.Close()
End Sub
Can someone explain to me why the
<meta http-equiv="refresh" content="5"/> will not work for me?
I use it in a standard asp page and it works just fine.
Why in ASP.NET2.0 it doesn't. I don't get any errors, it simply does not
trigger the page_load event after 5 seconds.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" EnableSessionState="True" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>test</title>
<meta http-equiv="refresh" content="5"/>
</head>
<body>
</body>
</html>
CODE
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Server.MapPath(getPDFName()).ToString)
Response.Flush()
Response.Close()
End Sub