Solved

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

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

624 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