Whats the best practice for implementing a confirmation page in .Net?
I’ve used response.redirect("Thankyou.aspx") a lot in the past I’ve also used something like this for hiding form controls and outputting a message:
outResult.Attributes.Remove("style")
outResult.Attributes.Add("style", "display:block;")
outEntry.Attributes.Remove("style")
outEntry.Attributes.Add("style", "display:none;")
For the above you have to consider post backs that may occur if the user click refresh though.
Does anybody have a better option?
Just have a clean nice page like “ThankYou.aspx” just like you suggested and redirect the user there.