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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:27:26+00:00 2026-05-15T17:27:26+00:00

In ASP.NET webforms I used to write AJAX apps where the client would communicate

  • 0

In ASP.NET webforms I used to write AJAX apps where the client would communicate to the server using web services or page methods and JSON.

I’m new to ASP.NET MVC and have found that one could use web services or controller actions that use JSON. Are there other options? Should I use web services or controller actions and why?

  • 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-15T17:27:27+00:00Added an answer on May 15, 2026 at 5:27 pm

    Most MVC apps use controller actions for Ajax actions.

    I think the “why” is that you’re leveraging your skillset and the MVC infrastructure. Everything you’re doing in the app is following the MVC model, why not drop Ajax into it as well? It’s just a very natural pattern.

    On the server, I often find myself forgetting if an action is Ajax invoked or not. I think this is a very good thing. The method of invoking the action is a separate concern from what the action does. This is particularly true, when you’re using progressive enhancement (Ajax for Javascript enabled, http post for non-js). Then the pattern looks something like below. I really like that I can forget about the communication mechanism and focus on what my app is supposed to do.

    [AcceptVerbs(HttpVerbs.Post)]
    public ActionResult MyProgressiveEnhancedAction(FormCollection form)
    {
      // Handle Html Post
    
      if (!Request.IsAjaxRequest())
        return ActionViaHtmlPost();
    
      // Ajax Invocation
    
      ...
    

    When I’m using this pattern I often find that I have a little bit of glue to abstract Ajax vs. Post and the rest (model, domain interactions, etc.) are common.

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

Sidebar

Related Questions

I am building a asp.net webforms (3.5 sp1) application, using jquery where I can
So, I've spent enough time using ASP.NET webforms to know that I'd almost rather
I am working on an ASP.NET WebForm application using MVP pattern. For every Web
I've got webform routing setup on my asp.net webforms 3.5sp1 project. I would like
I haven't used asp.net webforms in what seems like forever, and I am having
I'm still getting used to the way ASP.net WebForms handles things but this one
Currently I am working on an ASP.net webforms project where I would like to
I am working on an ASP.NET 4.0 web forms project that uses page routing
I am using ASP.Net / WebForms / Entity Model / Framework 3.5 Here is
I am working on website using ASP.Net C# WebForms Framework 3.5 I am using

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.