ispiro ispiro - 2 years ago 244
ASP.NET (C#) Question

HTML redirect vs ASP.Net redirect

<meta http-equiv="refresh" content="0; url=">



Is there a difference between them? If so - what are the advantages of each?

Answer Source

First one is in the HTML code and the browser might not even care about it. Most do, however. They might parse the whole page first, render it and only then realize you want a redirect.

The second one is on the HTTP level. No HTML code is needed, the redirection happens anyway in any browser. Immediately on header parsing.

So the second one is the proper way to do it, uses less bandwidth and is required to be implemented by browsers.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download