I have a main form that users fill out, and at the bottom there is a ‘Submit’ and ‘Reset’ button. As of now, there is a seperate .aspx confirmation page that users are directed to after pressing submit. Basically, I would like to be able to combine the confirm.aspx page into my default.aspx form page and have the content on the confirm.aspx page load on its own after the default.aspx page is submitted, without having two seperate pages. I feel like this might be pretty simple, but I’m still a beginner to ASP.net and have no clue as to how to approach this.
Thanks!
Use ASP.NET Panel controls and toggle the visibility. Have a form panel, a success panel and an error panel. Populate the latter two with appropriate messages. The error panel would appear via the catch in a try/catch setup.