Groups | Blog | Home
all groups > dotnet general > march 2004 >

dotnet general : Automatic DataGrid Refresh


Patrick Delifer
3/28/2004 7:32:17 PM
Hi All (Any help is appreciated)

Let's say I have a web page (.aspx) where the top portion is an Order entry
and the Bottom part is a Datagrid which displays the orders.

When the user creates an Order, the datagrid is automatically refreshed with
the new order.(using dataBind event). This works great.

The problem is, when or if an order is created somehwere else (another
user). I want to be able to refresh my datagrid (or refetch a DataBind)
using a time lapse (20 sec for example)..So that users should see the new
orders created without submitting a request to the server by clicking a
button...

I tried using a <META refresh HTML tag, but the problem is that when users
are entering data, they loose everything when the refresh is executed and
have to start reentering
the data..

Now my options are:
1. to refresh only the datagrid part of my page..(but how? using a
JavaScript?)
2. Use Frames? (Top for entry and Bottom for datagrid?) but how would I send
a button command to execute a databind on the Bottom frame page?
3. How would the HttpApplicationState object help in this context? or would
it?

thnaks for any help

Pat

Cor
3/29/2004 8:37:08 AM
Hi Patrick

You know these newsgroups?

microsoft.public.dotnet.framework.aspnet
microsoft.public.dotnet.framework.aspnet.datagridcontrol

You get probably your answer more easy there, although a lot active in this
newsgroup know also from aspx, are this questions more specific.

Cor

AddThis Social Bookmark Button