Solved

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

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

751 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