Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8618319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:04:50+00:00 2026-06-12T06:04:50+00:00

My .ashx Handler called from a jQuery AJAX post occasionally does not receive form

  • 0

My .ashx Handler called from a jQuery AJAX post occasionally does not receive form elements in the HttpContext.Request.

When this happens, the Request contains either only ViewState elements or has no elements at all.

It has failed OCCASIONALLY only with IE7, IE8, and IE9 (with several thousand hits/day by various browsers). I cannot reproduce this myself using IE and ‘most’ IE users (and all other users) do not experience this problem.

Javascript:

var data = $('form').serializeArray();
$.ajax({
            type: "POST",
            async: false,
            dataType: "text",
            url: "handler.ashx",
            data: data
        });

C# (handler.ashx):

void IHttpHandler.ProcessRequest(HttpContext context) {
     var collection = SetCollection(context.Request);

     // collection sometimes has just ViewState elements;
     // sometimes it has no items
     }

private NameValueCollection SetCollection(HttpRequest request){
    return request.Form;
}

Other info: The site is part of a web farm with a load balancer. Using .net 3.5.
I read that IE has a different way of generating the request header; not sure if this is related.

Thank you for any insight to resolving my problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:04:52+00:00Added an answer on June 12, 2026 at 6:04 am

    FIXED: This problem was existing in Firefox as well which helped resolve the problem because I could use Firebug.

    This handler was built to post information to the server and throw a server exception if there are any errors (i.e. javascript needed no response). Firefox and IE expect a response back to javascript; Firefox fails gracefully (throwing a server error but still working); IE fails nastily by crashing the browser.

    I added a context.Response.write(“true”) to the end of the handler and it no longer throws errors or dies.

    Hope this helps someone else down the road.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a Website environment how do you make an ajax post to Handler.ashx secure
I have an ashx handler which takes the 'html' property from the request, then
I called generic handler (ashx) from javascript code as given below; var xmlHttpReq =
http://localhost:2000/WebService/Handler.ashx?d=ck Response when viewing URL: {Status:OK,Message:0,Info:(none)} Using JQuery how do I pull from that?
I have next form and some ashx <form action=FileUpload.ashx method=POST enctype=multipart/form-data id=frmUpload> <input id=fileupload
I have an *.ashx (handler) with this code: public void ProcessRequest (HttpContext context) {
I've implemented a .ashx handler which receives chunked upload parts of a file from
I have created an ashx handler to render image thumbnails from images in a
Is it possible to get a web resource from an .ashx handler? We have
I have made a generic handler (.ashx) to fetch some database values using jquery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.