however each time the button is clicked it adds the page to the list of pages in the back button.
so if i press the button 7 times there will be 7 pages under the back button
How can i stop this from happening?Might help if we see a little code.
But sounds to me if the listbox is also getting information from the database, you need to clear the box first.
myListBox.Items.Clear()
Then add everthing to it again, including the new entry.
Zath
what i have is a user enter data into a textfield.
They then hit add and the textfields data is added to the listbox.
I do this several times
Each time i do it if i go to the back button on the web browser it will have a page in it for each
entry.
Can this be fixed with ispostback.
Common - and still a problem
check out this article
http://stevenbey.co.uk/detectingPageRefresh.aspx
HTH
Hi,
Dino Esposito has also written a page refresh detection mechanism last year. Check it out at:Build Your ASP.NET Pages on a Richer Bedrock.
Grz, Kris.
0 comments:
Post a Comment