471,610 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

Need help refreshing a datagrid client side

Hi --

I'm very, very new to ASP.Net, and I've been trying for several days to
figure out how to update a datagrid AND refresh it on the client side so
that the page doesn't refresh. I've torn my code apart over and over each
time I tried what I thought would be the code that would solve my problem.

Maybe I'm going down the completely wrong path here. Essentially,
here is an explanation of my ASP.NET webform application and what I
want it to do:

Employees add how much time they spend on a job, and then that
information is added to a SQL database and displayed in a datagrid.
I've got everything working on the client side (we are using an AJAX
approach), except the refreshing
of the datagrid.

When the page loads and/or when a new record is added, I want the
datagrid to update (without the page refreshing). The information
that is returned is in XML format, and I somehow have to get it into
the datagrid.

Here's one record of the XML that is returned into variable


But for a given period of time, there will be several of these
ActivityHistory records.

Below is the function I have so far (sorry about the wrapping), but as I
said, I could be going
down a completely wrong path. I would greatly appreciate if any of
you have corrections for my code or if you have ideas/suggestions for
a different/better way to do this (since my way doesn't work,
anything would be better). Yes, I'm a newbie, and I'm just
not "getting" this at all. I have no idea what to do now that
nothing has worked thus far.

function LoadTable()

var Employee = document.getElementById
var StartDate = document.getElementById
var EndDate = document.getElementById

// Update the xml island with the employee history
var oResult = Methods.EmployeeActivity(Employee,
StartDate, EndDate);

var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");

var loaded = xmlDoc.loadXML(oResult.value);
if (loaded) {
var xslDoc=new ActiveXObject
("Table1Inner").innerHTML = xmlDoc.transformNode(xslDoc);


Nov 12 '05 #1
0 1637

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Glenn Owens | last post: by
7 posts views Thread by A.M | last post: by
2 posts views Thread by Snig | last post: by
1 post views Thread by msnews | last post: by
7 posts views Thread by rn5a | last post: by
1 post views Thread by Andrew Wan | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.