Solved

refresh records

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

Industry Leaders: 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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
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 …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
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…

705 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