Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2005, 11:38 AM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using timer to update datagrid

In my Page_Load, I am calling a function to fill a datagrid from a SQL table. I added a timer to fire every minute to update the datagrid but the datagrid never gets refreshed. I used the debugger to determine that my code is getting the updated data, but the datagrid is not being updated when I do a databind.

I added a button and in the onclick event, I called the same function as the timer. The button is able to update the datagrid. How can I get the timer to update the datagrid?
 
Old September 11th, 2005, 11:29 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

The timer runs on the server, not the client. Use a Meta tag with refres = <some value>






Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid update sumith ASP.NET 1.0 and 1.1 Basics 0 February 9th, 2007 02:14 AM
Update using the datagrid in C# jka_za C# 2005 0 September 22nd, 2006 06:02 AM
Datagrid.update() and DataAdapter.Update aarunlal ASP.NET 2.0 Professional 2 February 23rd, 2006 11:41 PM
Datagrid Does Not Update ... wecka .NET Framework 2.0 1 March 28th, 2005 04:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.