Hey,
I have a problem that I'm sure someone has to have a very simple answer for.
I have an ASP.net web app that has a save button when clicked will save items in a listbox to a MSSQL 2005 database. Works great!
The problem is whenever the refresh button on the webpage is clicked, the previous save transaction is again played to the database because on on_click event gets fired again. This is not good.
!Page.IsPostback prevents the event from being fired altogether (during the initial page load and any subsequent postbacks. Someone plz, plz, plz tell me what I'm missing here.
Thanks
I have a problem that I'm sure someone has to have a very simple answer for.
I have an ASP.net web app that has a save button when clicked will save items in a listbox to a MSSQL 2005 database. Works great!
The problem is whenever the refresh button on the webpage is clicked, the previous save transaction is again played to the database because on on_click event gets fired again. This is not good.
!Page.IsPostback prevents the event from being fired altogether (during the initial page load and any subsequent postbacks. Someone plz, plz, plz tell me what I'm missing here.
Thanks