How can I limit visibility and access to a form confirmation page?
I have a form that inserts a record into the database then displays a separate confirmation page saying thanks. The page does the insert, then uses response.redirect to display the thank you page. I would like to make it so someone just could not print the thank you page by typing in the url. How could I make it so that if they type in the url, they go back to the homepage, but, if it is a result of a successful form insert, they see it after the insert is done?
public void PreLoad(object sender, EventArgs e)
Uri Referrer = Request.UrlReferrer;
if ((Referrer != null) || (!Referrer.ToString.Equals("default.aspx")))