resp.ContentType = "text/html"
resp.Write($"<meta http-equiv="Refresh" content="0; url='https://mysite.com/docs.html'" />"$)
Yep! You got it! That works! Thank you!
@Erel , maybe we could have something like this:
resp.SendRefresh("docs.html")
I'm using this after a person completes a registration. The user gets an email with a URL like:
https://mysite.com/confirm?code=shfg9834hkdjfhg93845hsldkdfgh9384h987hg
They click on it, and it hits the /confirm route, but then needs to show a success.html or fail.html page, as applies.
Would it be better, instead of doing a <meta> refresh, to load the file myself and send it?
resp.ContentType = "text/html"
resp.Write( File.LoadString("success.html") )