.NET AJAX application firing extra http requests

Posted on 2009-04-20
Medium Priority
Last Modified: 2013-11-22
I have a break point in my Global.asax in the Application_BeginRequest event.  For every request to my application, a second request comes through while the page is loading.  It is ALWAYS a request for default.aspx.

For example if I am executing a page called /FooBar.aspx, a second request will always be /default.aspx.  Or if the request is /SubDirectory/SomePage.aspx, the second request will come through as /SubDirectory/default.aspx.

The proper page is always loaded, based on the original request.  The second request is loading as if it were a resource request for the first page.  The browser will show me "1 item remaining" just before it fires, as if it were an image or something.

Has anyone seen this before?  Could it be something in the AJAX.  

Question by:gieit
  • 2

Author Comment

ID: 24194191
I have a theory for my own question, but I haven't proven it 100% yet.

I believe I have ASP Image controls whose ImageUrl property has not been set.  I think when the frameword requests the image resource without a file name, it's loading /default.aspx.

I'll post again once I'm sure this is the problem.

Accepted Solution

gieit earned 0 total points
ID: 24197592
I was right.  ASP Image controls that have no ImageUrl property will still post a request back to the server.  The absence of any file name will cause the server to server default.aspx.

In my case default.aspx exists in just about every subdirectory on the site and we had several images whose paths were failing to be programitically set.

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Suggested Courses
Course of the Month16 days, 10 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question