View Single Post
  #2 (permalink)  
Old July 4th, 2009, 05:09 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 33,563, Level: 80
Points: 33,563, Level: 80 Points: 33,563, Level: 80 Points: 33,563, Level: 80
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,231
Thanks: 7
Thanked 203 Times in 201 Posts
Default

Hi there,

Can you show more code here? It's not entirely clear when your data gets updated or how your page is set up.

Typically, however, when you want to refresh your data, you call DataBind on the relevant control. So, if you want to refresh a GridView you call:

myGridView.DataBind()

from your Button's Click handler (or from another location where it makes sense)

This forces the control to get and display updated data.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004

Did this post help you? Click the button to show your appreciation!
Reply With Quote