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

  • Home
  • SEARCH
  • 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 133667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:28:27+00:00 2026-05-11T06:28:27+00:00

jQuery 1.3.2, ASP.NET 2.0. Making an AJAX call to a PageMethod (WebMethod) returns the

  • 0

jQuery 1.3.2, ASP.NET 2.0. Making an AJAX call to a PageMethod (WebMethod) returns the full/whole page instead of just the response. A breakpoint on the page method shows it’s never getting hit. I have the [WebMethod] attribute on my method, and it is public static, returns string and accepts no params. I even tried adding [ScriptService] at the top of my class to see if it helped, but it did not.

I have seen this post Jquery AJAX with ASP.NET WebMethod Returning Entire Page which had my same symptoms, but I am still having a problem. I read http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/ and I feel like I’m following this to the T, but still no luck.

The jQuery call I’m making is:

jQuery.ajax({     type: 'POST',     contentType: 'application/json; charset=utf-8',     data: '{}',     dataType: 'json',     url: 'MyPage.aspx/SomePageMethod',     success: function(result){         alert(result);     } }); 

The request/response headers, as per Firebug in FF3, are as follows

Response Headers Server  ASP.NET Development Server/8.0.0.0 Date    Tue, 24 Feb 2009 18:58:27 GMT X-AspNet-Version    2.0.50727 Cache-Control   private Content-Type    text/html; charset=utf-8 Content-Length  108558 Connection  Close  Request Headers  Host    localhost:2624 User-Agent  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 Accept  application/json, text/javascript, */* Accept-Language en-us,en;q=0.5 Accept-Encoding gzip,deflate Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive  300 Connection  keep-alive Content-Type    application/json; charset=utf-8 X-Requested-With XMLHttpRequest Referer http://localhost:2624/MyApp/MyPage.aspx Content-Length  2 Cookie  ASP.NET_SessionId=g1idhx55b5awyi55fvorj055;  

I’ve added a ScriptManager to my page just for kicks to see if it helped, but no luck there.

Any suggestions?

  • 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. 2026-05-11T06:28:27+00:00Added an answer on May 11, 2026 at 6:28 am

    Do you know that Page Methods are working properly? If you use the the ScriptManager do they work?

    It sounds like you might be missing a web.config entry. Specifically the HttpModules section.

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

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Well the alert should go in the success callback and… May 11, 2026 at 12:41 pm
  • added an answer Use this for legacy code (PHP < 5.3; Jun 2009).… May 11, 2026 at 12:41 pm
  • added an answer No, nothing built-in. However, for WPF, Kent Boogaart recently had… May 11, 2026 at 12:41 pm

Related Questions

Are there any jQuery 1.3 animation-transitions that work in both Firefox 3 and IE7?
Edit: This is a confirmed bug in jQuery 1.3.1. It is fixed in jQuery
I'm having trouble with the droppable effect in jquery 1.3.1 (UI version 1.5.3). As
I am currently testing this in Mozilla FireFox 3.0.5 using FireBug 1.3.0 with jQuery
I have this bit of javascript written with jQuery 1.2.5. It's contained inside the
I'm about to start a fairly Ajax heavy feature in my company's application. What
I'm working on a web application (with ASP.NET 2.0 (C#) and jQuery) In my
I have a simple webmethod on an asp.net 2.0 application (using the 1.0 extensions
My company has purchased a product that renders an ASP.NET control on the page.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.