2 Replies - 1407 Views - Last Post: 12 April 2011 - 10:57 AM Rate Topic: -----

#1 jiaco1  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 17-March 09

asp.net application allowing only one page to execute

Posted 11 April 2011 - 12:43 PM

My web application, in any environmnet (local, test, QA, production), allows only one page to execute at a time. For the sake of a clear example, I have two windows open. I access a fairly simple page with one grid that displays data from one stored procedure that takes 30 seconds to run. while this is running, I have a second page opened that shows the home page, which contains no database access, only a splash screen. I hit refresh, and the page sits there waiting until the first window finishes the request. Once the first page completes, the splash screen in the second window immediately refreshes.

This happens with any sample pages throughout the app, but does not happen between applications. For example, if I open a third window in this same test, which ponts to another application on the web server, it works fine, even while the second window to the first application is still sitting there waiting for the first page to complete.

Any ideas why this may be behaving this way? I can't find anything that stands out in my application configuraion.

Thanks.

This post has been edited by jiaco1: 11 April 2011 - 12:49 PM


Is This A Good Question/Topic? 0
  • +

Replies To: asp.net application allowing only one page to execute

#2 marinus  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 135
  • View blog
  • Posts: 575
  • Joined: 14-April 10

Re: asp.net application allowing only one page to execute

Posted 11 April 2011 - 11:13 PM

Rather use Javascript to show you a splash screen , its far more effective

This is something i found on a forum i was working on , it works like a charm..

<div id="searchusers" style=" display:none;"><img alt="Loading..." id="imload" class="style12" src="images/loading.gif"  />


<div id="Div1" style=" display:none;"><img alt="Loading..." id="Img1" class="style12" src="images/loading.gif"  /> Searching for existing Email  in Forum</div>


  <script  type="text/javascript">
                      function DisplayWaiting(element) {
                          var message = document.getElementById("Message");

                          if (element.id == "txtUsername") {
                     
                              var img = document.getElementById("searchusers");
                              img.style.display = 'block';
                          }
                          if (element.id == "txtEmail") {

                              var img = document.getElementById("Div1");
                              img.style.display = 'block';
                          }
                      }
</script>


Obviously you will have to change some of this code to work on body onload event or some event

<asp:TextBox ID="txtEmail" runat="server" BorderColor="#FF9900" 
                          BorderStyle="Solid" onchange="DisplayWaiting(this)" AutoPostBack="True" 
                          ontextchanged="txtEmail_TextChanged"></asp:TextBox>


But this is far better than to open another screen

This post has been edited by marinus: 11 April 2011 - 11:16 PM

Was This Post Helpful? 0
  • +
  • -

#3 jiaco1  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 17-March 09

Re: asp.net application allowing only one page to execute

Posted 12 April 2011 - 10:57 AM

Thank you for your response. Please allow me to clarify... The splash screen was only an example to explain that no matter what page I access, even a splash screen, it will not render until any pending request is completed. The two windows was meant to mimic two users accessing the system simultaneously.

Any thoughts on this?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1