?
Solved

How do I refresh a listbox control on a web form in asp.net?

Posted on 2008-10-26
2
Medium Priority
?
278 Views
Last Modified: 2012-05-05
I have an asp.net application that has a listbox that is data bound to a detailsview control.  After the user updates the database using the detailsview, I want the listbox to refresh.

I have tried doing a response.redirect back to itself.  It works okay with an Insert but not with a Delete.  Is there a way that I can do the redirect so that the web form completely reloads?

THANKS!!
0
Comment
Question by:PEAKTT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
Dustin Hopkins earned 2000 total points
ID: 22813605
after the detailsview performs the change then envoke the databind method of the listbox.

listbox1.databind

Hope this helps,
Dustin
0
 

Author Closing Comment

by:PEAKTT
ID: 31510179
Thank you!!!  I knew it was something simple but just couldn't wrap my brain around it.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

718 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