.NET AJAX application firing extra http requests

Posted on 2009-04-20
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

    Author Comment

    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

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Suggested Solutions

    Title # Comments Views Activity
    CFFILE upload help 98 84
    How to send image and data using ajax 6 45
    KB2919355 Installation Issues 6 75
    Parse CSS value with RegEx 2 28
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    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…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, 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, fr…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now