• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Updating List Box Contents

Hi All,

I have 2 list boxes .. and a buttons to move items between them ...

The problem is thta every time I click a button to move items the whole page refreshes ... I understand this is because the buttons are server components so it needs to post to the server ..

HOWEVER ....

Is there a way to get data moving between the boxes without refreshing the page ...

I thought I'd ask ...
0
Pete2003
Asked:
Pete2003
  • 4
  • 3
1 Solution
 
nhewitt21Commented:
If your wanting to populate a listbox from another and visa vers and using a button to transfer the text etc, then you shouldn't need to refresh the page.  It depends what your doing after that.

Are you saving anything to a database after you have changed the lists?
0
 
Pete2003Author Commented:
Well the thing is that whenever I push the button (it's an SP button) ... it refreshes the page ...
Probably since all LBs and the Button are all runat="server"
0
 
Pete2003Author Commented:
I meant ASP button not SP button ...
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Pete2003Author Commented:
Any help here please ?
0
 
nhewitt21Commented:
I've had a look at a few sites and a few of my programs and i have no idea if its possible, all my webapps refresh the page when i click a button too.

However, i just put a:
if(!IsPostBack)
{
}

around everything in the Page_Load.  Then my code on page load don't run again.

Hope this helps.
0
 
Pete2003Author Commented:
Yeah .. I use the IsPostBack too .. but the page itself still refreshes ... btu I knew it would not be possible .. just was looking for 2nd opinion
0
 
nhewitt21Commented:
thanks a lot.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now