?
Solved

refresh records

Posted on 2011-03-20
5
Medium Priority
?
289 Views
Last Modified: 2012-05-11
I have a repeater control on my application that lists files per each product.  It has a delete button that when clicked deletes a entry from the database and deletes the file... I was wondering why SOMETIMES the repeater does not refresh to show that the item deleted.....

When i manually refresh the page it shows that it is gone .. like it should.

Again, this happens only SOME OF THE TIME.

the delete function is in a class module that gets called
0
Comment
Question by:vbnetcoder
[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
5 Comments
 
LVL 27

Expert Comment

by:nmarun
ID: 35177773
It would greatly help to see some code.

Arun
0
 
LVL 23

Accepted Solution

by:
Saqib Khan earned 2000 total points
ID: 35178364
There should be a SUB which does data binding to your repeater (a seperate function/Sub)

Right After you Delete the Record call the SUB for databinding to repeater again.

if you have it this way already, then it could be the "Caching issue".
0
 
LVL 8

Expert Comment

by:Anurag Agarwal
ID: 35178486
vbnetcoder very well said by adilkhan,
call BindRepeater Method just after deleting the record and your repeater will be refreshed.

for help refer to Edit ,Update , Delete in Repeater in asp.net
0
 

Author Comment

by:vbnetcoder
ID: 35179907
OK that seems to help.... I was actually rebinding on the page load but now doing it right after as well
0
 

Author Closing Comment

by:vbnetcoder
ID: 35202095
ty
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month13 days, 14 hours left to enroll

800 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