• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

refresh records

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
vbnetcoder
Asked:
vbnetcoder
1 Solution
 
nmarunCommented:
It would greatly help to see some code.

Arun
0
 
Saqib KhanSenior DeveloperCommented:
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
 
Anurag AgarwalCommented:
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
 
vbnetcoderAuthor Commented:
OK that seems to help.... I was actually rebinding on the page load but now doing it right after as well
0
 
vbnetcoderAuthor Commented:
ty
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now