Solved

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

Posted on 2008-10-26
2
268 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 500 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

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

17 Experts available now in Live!

Get 1:1 Help Now