Alan, you can achieve this by using XMLHttp Async
functionality in a javascript file.
Create an aspx page in which execute long running SQL
query, then do an XMLhttp post to that page from a js
function.
In the javascript create 2 funtion
Call LoadData in the window onload event.
var objXMLReq;
function LoadData() {
objXMLReq = new ActiveXObject
("Microsoft.XML Http");
var DataUrl = 'http://localhost/Query.aspx';
objXMLReq.onrea dystatechange =
ManageASyncXMLH TTPOperation;
objXMLReq.open( "POST", DataUrl, true);
objXMLReq.setRe questHeader('Co ntent-
type', 'text/xml');
objXMLReq.send( );
//Display Progress bar("Retrieving data...");
}
function ManageASyncXMLH TTPOperationDTL () {
switch (objXMLReq.read yState) {
case 2, 3:
break;
case 4:
//Hide the progress bar
//Display the data
div.innherText= objXMLReq.respo nseText;
}
}
[color=blue]
>-----Original Message-----
>Does anyone know of web form Progress Bar controls or[/color]
simulations for[color=blue]
> long-running SQLServer process?
>
> Is it possible to use a conceptual method such as
>
> 1. Have SQLServer post status updates or number of[/color]
seconds elapsed to[color=blue]
> database table, and
>
> 2. Have web form post commands to retrieve data from[/color]
the table based[color=blue]
>on a timer, but inhibit web form redrawing until[/color]
SQLServer table progress[color=blue]
>numbers
>pass certain threshholds?
>
> Thanks.
>
> Alan
>______________ _____________
>Alan Z. Scharf
>GrapeVine Systems
>New York City
>
>
>.
>[/color]
functionality in a javascript file.
Create an aspx page in which execute long running SQL
query, then do an XMLhttp post to that page from a js
function.
In the javascript create 2 funtion
Call LoadData in the window onload event.
var objXMLReq;
function LoadData() {
objXMLReq = new ActiveXObject
("Microsoft.XML Http");
var DataUrl = 'http://localhost/Query.aspx';
objXMLReq.onrea dystatechange =
ManageASyncXMLH TTPOperation;
objXMLReq.open( "POST", DataUrl, true);
objXMLReq.setRe questHeader('Co ntent-
type', 'text/xml');
objXMLReq.send( );
//Display Progress bar("Retrieving data...");
}
function ManageASyncXMLH TTPOperationDTL () {
switch (objXMLReq.read yState) {
case 2, 3:
break;
case 4:
//Hide the progress bar
//Display the data
div.innherText= objXMLReq.respo nseText;
}
}
[color=blue]
>-----Original Message-----
>Does anyone know of web form Progress Bar controls or[/color]
simulations for[color=blue]
> long-running SQLServer process?
>
> Is it possible to use a conceptual method such as
>
> 1. Have SQLServer post status updates or number of[/color]
seconds elapsed to[color=blue]
> database table, and
>
> 2. Have web form post commands to retrieve data from[/color]
the table based[color=blue]
>on a timer, but inhibit web form redrawing until[/color]
SQLServer table progress[color=blue]
>numbers
>pass certain threshholds?
>
> Thanks.
>
> Alan
>______________ _____________
>Alan Z. Scharf
>GrapeVine Systems
>New York City
>
>
>.
>[/color]
Comment