Solved

refresh records

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

Technology Partners: 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

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…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

749 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