Hi there!
Dip_developer suggestions are great and could solve the problem for you but please remember that when the user hits the back button a Cached version of your web page is displayed. This means that the user will have to submit the forum and you'll have to do some checking to see if they have already submitted that data.
I recommend using JavaScript to disable the button upon submitting the page.
All you have to do is:
-
BTN_Button.Attributes.Add("onclick", "javascript:" + BTN_Button.ClientID + ".disabled=true;"
Now when the user clicks the button the page is submitted to the server and the button is disabled. If you need to redisplay the page with errors the JavaScript will also be reset so the button will become usable at that time. Otherwise, if the user clicks the back button the Chached web page displayed will have the button disabled.
Please remember that there are ways around JavaScript scripts, so always do server side checks to properly secure your program.
:)
Cheers!
-Frinny