Hello,

I have a usercontrol which use Ajax.
In this userControl I have a Ajax methode:

[AjaxPro.AjaxMethod]
public string GetItem(int tableId,string wordToSearchTmp,string
sessionId){
 try{
  // Access to an Oracle DataBase to retreive the result

return(SearchLevelDataAccess.CountItems(tableName,wordToSearchTmp,sessionId).ToString());
 }
catch(System.Exception err){
 return(err.Message);
 }
}

And a methode that generate JavaScript for my web page. the javaScript
looks like:

function count_sector(){
CountItemsInClassificationWebControl.GetItem(0,'auto','200606260918571084',count_sector_callback);
}
function count_sector_callback(res){
 var oN=document.getElementById('res_sector');
oN.innerHTML=res.value;
}
addEvent(window, "load", count_sector);

function count_subsector(){
CountItemsInClassificationWebControl.GetItem(1,'auto','200606260918571084',count_subsector_callback);
}
function count_subsector_callback(res){
 var oN=document.getElementById('res_subsector');
 oN.innerHTML=res.value;
}
addEvent(window, "load", count_subsector);
.... And so on

I call 7 times the ajax methode GetItem to get 7 different results.

My problème is that some results never come (1 or 2) but not the same
each times.

I use Fiddler to see the HTTP trafic and for the call that is not work
I have the "Session was aborted by the client, Fiddler, or the Server."
icone but the server response is correct:
****************************************************************************************
{"tableId":6,"wordToSearchTmp":"auto","sessionId":"200606260918571084"}

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 9
Content-Type: text/plain; charset=utf-8
Expires: -1
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Date: Mon, 26 Jun 2006 13:01:03 GMT

"1102";/*  <------------------------------ the result
****************************************************************************************

When I replace the DB access in my ajax methode by a simple string
result I don't have the problem.

Perhaps there is a time out problem???
If someone has a idea.

thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to