How do you set a time delay for Response.Redirect()
-
I am creating a site, and wanted to instigate a basic landing page.. i thought perhaps i could use Response.Redirect to put a 5second delay on the transfer to index.aspx any suggestions would be fantastic.. John
John Michael Kinsella kinsellajohn@hotmail.com
-
I am creating a site, and wanted to instigate a basic landing page.. i thought perhaps i could use Response.Redirect to put a 5second delay on the transfer to index.aspx any suggestions would be fantastic.. John
John Michael Kinsella kinsellajohn@hotmail.com
-
If you want to delay something you will probably need to use: System.Threading.Thread.Sleep(5000) Hope that helps. Ben
You should try to do the delay in the browser instead of on the server. As long as the request is blocked on the server, it will not answer to any other request from the browser. The Javascript window.setTimeout method can be used to run code after a delay.
--- single minded; short sighted; long gone;
-
You should try to do the delay in the browser instead of on the server. As long as the request is blocked on the server, it will not answer to any other request from the browser. The Javascript window.setTimeout method can be used to run code after a delay.
--- single minded; short sighted; long gone;
-
You should try to do the delay in the browser instead of on the server. As long as the request is blocked on the server, it will not answer to any other request from the browser. The Javascript window.setTimeout method can be used to run code after a delay.
--- single minded; short sighted; long gone;
Thanks for the suggestions guys.. basically i have just taken an asp.net exam and i am trying to put the skills to practical use. unfortunately i am not familiar with javascript but if you could give me more details i am more than willing to research. thanks again for your responses.. John
John Michael Kinsella kinsellajohn@hotmail.com
-
Thanks for the suggestions guys.. basically i have just taken an asp.net exam and i am trying to put the skills to practical use. unfortunately i am not familiar with javascript but if you could give me more details i am more than willing to research. thanks again for your responses.. John
John Michael Kinsella kinsellajohn@hotmail.com
ASP.NET is a framework which generates HTML on the server. Javascript is the language that runs in your browser, and the language in which ASP.NET generates code to do anything that runs on the client ( such as validation ). Buy a javascript book and work through it, or look up some tutorials on the web.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )