The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

cpradio (2) [Avatar] Offline
#1
Okay, I am experiencing an issue running two AJAX requests at the same time. The first request I send takes 10 seconds (this is known as I have the requested page sleep for 10 seconds), the second request takes approximately 2 seconds. However, when using .NET, these requests process in a Queued fashion

Now I know it is the .NET Framework causing this as I also installed PHP on my IIS server and when I make the same request pointing to PHP files instead of ASPX files, the 2 second request comes back before the 10 second request is finished -- THIS IS WHAT I WANT.

Why is the .NET application acting in a queued form when there are two seperate requests being made?

Source Code at: http://cpradio.net/AJAXExample1.zip

To recreate the issue, download the zip file and extract the contents into your inetpub/wwwroot, or create a virtual directory for the AJAXExample1 folder. Visit WebForm1.aspx, click on the "text link" first, this will generate a 10 second request, then select an option from the Drop Down, notice the Second Drop Down box does not populate until the "textual link" request shows the "Status: Completed" message.

Message was edited by: cpradio
cpradio
cpradio (2) [Avatar] Offline
#2
Re: Similtaneous AJAX Requests
I figured out the answer, it is due to enableSessionState being "true", once this is set to "false" it works perfectly.