Solved

refresh records

Posted on 2011-03-20
5
281 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
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 500 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

770 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