D
Dave Hagerich
I have an ASP.Net v1.1 page with C# code-behind, that after a period of time
I want the page to transfer the user to another page on the server. So I
create and setup a timer and pass to it a delegate to be used for the
elapsed event. This all works fine and after the interval is up the elapsed
function fires. But when it gets to the Server.Transfer() call the following
exception is thrown:
Error executing child request for Login.aspx.
at System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter
writer, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path)
I'm assuming this is because System.Timers.Timer is asynchronous and the
elapsed method is called on a different thread then the main page. If this
was a windows program I could easily use the Form.Invoke() method to return
control to the main thread, is there a way to accomplish this in ASP.Net?
Thanks in advance
--
Dave Hagerich
(e-mail address removed)
Arc Light Entertainment, Inc.
4637 Benson Avenue
Baltimore, MD 21227
www.arclighte.com
410-536-0292 Voice
410-536-0294 Fax
I want the page to transfer the user to another page on the server. So I
create and setup a timer and pass to it a delegate to be used for the
elapsed event. This all works fine and after the interval is up the elapsed
function fires. But when it gets to the Server.Transfer() call the following
exception is thrown:
Error executing child request for Login.aspx.
at System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter
writer, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path)
I'm assuming this is because System.Timers.Timer is asynchronous and the
elapsed method is called on a different thread then the main page. If this
was a windows program I could easily use the Form.Invoke() method to return
control to the main thread, is there a way to accomplish this in ASP.Net?
Thanks in advance
--
Dave Hagerich
(e-mail address removed)
Arc Light Entertainment, Inc.
4637 Benson Avenue
Baltimore, MD 21227
www.arclighte.com
410-536-0292 Voice
410-536-0294 Fax