Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-10-26
2
Medium Priority
?
283 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
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

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.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
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…
Suggested Courses

885 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