I have a listbox on my page and a button. I want to add text to my listbox when the button is pressed. I have noticed that the page is reloaded.
Is there a way that only the list box refreshes. Im sure i read somewhere that you can do this.
My code is very simple
ListBox1.Items.Add("Test");
Thanks
Stop page refresh
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Bryian TanRank #396 · 6.3K reputationPosted Aug 26, 2010, 4:28 PM EDT
You can wrap it inside the updatepanel. See example below,