Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Setting x-microsoftajax: Delta=true header is giving http error 400

Setting x-microsoftajax: Delta=true header is giving http error 400

Scheduled Pinned Locked Moved ASP.NET
sysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ash_VCPP
    wrote on last edited by
    #1

    hi all, i am posting some url to server through http request which returns result in updatepanel control so it requires me to add "x-microsoftajax: Delta=true header, but it returns me error code 400... but if i remove this header i get the page but without that updatepanel which contains the required data for me....please can anyone assist me on this.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    A 1 Reply Last reply
    0
    • A Ash_VCPP

      hi all, i am posting some url to server through http request which returns result in updatepanel control so it requires me to add "x-microsoftajax: Delta=true header, but it returns me error code 400... but if i remove this header i get the page but without that updatepanel which contains the required data for me....please can anyone assist me on this.

      Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Are you using XmlHttpRequest for this?? I think what asp.NET does... from within the updatepanel.. if a request is made. the postback is suppressed and AJAX page creates an XMLHttpRequest object and places the special request with x-microsoft: Delta=true and receives only the part of data which corresponds to the update panel.. This is purely an AJAX request and the output you get from those request will not hold the entire page. If are putting your custom request by making an object of XMLHttpRequest yourself, you need to know what are the other things that the request must contain before this could get an output. This is purely a custom request made by Microsoft. 400 means bad request or Page doesnt exists... Thus rather than making this type of request, it is always better to expose the data in one page and make a call normally to it. Tweaking between custom forms and viewstate entries is not always good... (At least who knows this internal form structure might change in next version of UpdatePanel) :cool:

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      A 1 Reply Last reply
      0
      • A Abhishek Sur

        Are you using XmlHttpRequest for this?? I think what asp.NET does... from within the updatepanel.. if a request is made. the postback is suppressed and AJAX page creates an XMLHttpRequest object and places the special request with x-microsoft: Delta=true and receives only the part of data which corresponds to the update panel.. This is purely an AJAX request and the output you get from those request will not hold the entire page. If are putting your custom request by making an object of XMLHttpRequest yourself, you need to know what are the other things that the request must contain before this could get an output. This is purely a custom request made by Microsoft. 400 means bad request or Page doesnt exists... Thus rather than making this type of request, it is always better to expose the data in one page and make a call normally to it. Tweaking between custom forms and viewstate entries is not always good... (At least who knows this internal form structure might change in next version of UpdatePanel) :cool:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        A Offline
        A Offline
        Ash_VCPP
        wrote on last edited by
        #3

        Hi Abhishek, Thanks for the reply.. but what about it "but if i remove this header(x-microsoftajax: Delta=true ) i get the page but without that updatepanel which contains the required data for me....." Yes i am using HTTPRequest object. so as you said i should try to send httprequest without view source and other stuff but can you explain it a bit more that what i should exactly do.

        Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups