Is it possible to delay the response.redirect in an asp.net page by 5 seconds?
something like delay.response.redirect("myURL.aspx")
I need to run a jquery animation before the page redirects.
I don't want to use meta refresh if I can help it but if that's the only way or the best way then please let me know.
thanks
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "click", "alert('Cliente cadastrado com sucesso.'); setTimeout(function(){window.location.href ='../../Default.aspx'}, 3000);", true);
Response.AddHeader("REFRESH", "5;URL=http://redirectPage.aspx")
5 = delay in seconds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With