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 632569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:05:28+00:00 2026-05-13T20:05:28+00:00

I know MVC controllers are quite good at serving JSON formatted AJAX requests, but

  • 0

I know MVC controllers are quite good at serving JSON formatted AJAX requests, but is there any built-in ASP.NET functionality I can use for these type calls from a plain old web forms site?

  • 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-05-13T20:05:28+00:00Added an answer on May 13, 2026 at 8:05 pm

    You could use built-in ASP.NET AJAX.

    Option 1 – use a web service (if you want the functionality to be reusable):

    • create a web service (.asmx) with [ScriptService] attribute,
    • add a to your page and add the web service to its Services collection,
    • use JavaScript proxy generated by ScriptManager in yor page.

    Option 2 – use page methods (if you want the functionality on a single page without creating a web service):

    • define static methods in your page, add [WebMethod] attribute to them,
    • add a ScriptManager with EnablePageMethods=”true”,
    • use PageMethods object to call these method from JavaScript.

    In either case JSON will be used for data transfer.

    Here is an extensive tutorial with some code samples.

    However, ASP.NET AJAX is often blamed for inefficiency – for instance, JS it generates tends to be rather large. So, if you are concerned with performance, you’d want to test it thoroughly.

    You might also have a look at this thread: .NET AJAX Calls to ASMX or ASPX or ASHX?

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

Sidebar

Related Questions

I know the difference between ASP.NET webforms and ASP.NET MVC and I've seen quite
I know this is a simple question, but I am new to ASP MVC
I am quite familiar with ASP.NET MVC and know that a controller’s method can
I know that ASP.NET MVC 1.0 is bin-deployable as explained in Phil Haack's article.
I know that the reason that Microsoft came out with ASP.NET MVC was to
I know it's possible to use DependencyResolver and register Castle Windsor with MVC but
We know that behind the scenes, the ASP.NET MVC framework will use reflection to
As far as I know, ASP.NET MVC leverages a lot of the features of
I'm jumping into ASP.Net MVC and wanted to know how tough it's been for
Does installing ASP.NET MVC require a server reboot? I've set up quite a few

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.