Updating List Box Contents

Posted on 2004-08-18
Last Modified: 2010-04-15
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 ..


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

I thought I'd ask ...
Question by:Pete2003
  • 4
  • 3

Expert Comment

ID: 11832156
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?

Author Comment

ID: 11834608
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"

Author Comment

ID: 11835180
I meant ASP button not SP button ...
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!


Author Comment

ID: 11868072
Any help here please ?

Accepted Solution

nhewitt21 earned 250 total points
ID: 11868258
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:

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

Hope this helps.

Author Comment

ID: 11868763
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

Expert Comment

ID: 11892144
thanks a lot.

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Unit testing, moq, best practices 7 29
What is MicroStrategy.NET? 2 47
C# Problem Solving Execerscise 5 43
Image(2) 3 28
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now