Solved

Updating List Box Contents

Posted on 2004-08-18
7
210 Views
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 ..

HOWEVER ....

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

I thought I'd ask ...
0
Comment
Question by:Pete2003
  • 4
  • 3
7 Comments
 
LVL 3

Expert Comment

by:nhewitt21
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?
0
 

Author Comment

by:Pete2003
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"
0
 

Author Comment

by:Pete2003
ID: 11835180
I meant ASP button not SP button ...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Pete2003
ID: 11868072
Any help here please ?
0
 
LVL 3

Accepted Solution

by:
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:
if(!IsPostBack)
{
}

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

Hope this helps.
0
 

Author Comment

by:Pete2003
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
0
 
LVL 3

Expert Comment

by:nhewitt21
ID: 11892144
thanks a lot.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
creating a flowchart from an algorithm 5 30
Achieve json result 2 64
Search by two fields at the same time using c# radio button 5 39
Entity Framework 7 28
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

930 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

11 Experts available now in Live!

Get 1:1 Help Now