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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:26:42+00:00 2026-05-24T04:26:42+00:00

I have an overloaded action in my method, one declared with and the other

  • 0

I have an overloaded action in my method, one declared with and the other with .

I use the Post metod to handle my form’s submit button, which works fine.

I wanted the HttpGet method to handle a jQuery .load() action but that is instead also being caught by my Post method.

Any idea what I’m missing? Do I have to explicitl call a .get() or .ajax() to hit the right action?

Thanks!

-Ben

  • 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-24T04:26:43+00:00Added an answer on May 24, 2026 at 4:26 am

    The .load method could send an HTTP POST AJAX request as stated in the documentation:

    The POST method is used if data is provided as an object; otherwise,
    GET is assumed.

    For example

    $('#result').load("/foo", { id: 123 }, function(result) {
    
    });
    

    will send a POST request.

    If you want to be sure use $.get, or $.ajax with type: 'GET'. Also don’t forget that if you use GET request for AJAX some browsers might cache the results and get you into trouble or at least some weird behavior, so if you want fresh contents from your server use $.ajax with cache: false parameter.

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

Sidebar

Related Questions

I have a service class which has overloaded constructors. One constructor has 5 parameters
I have a class with an overloaded method: MyClass.DoThis(Action<Foo> action); MyClass.DoThis(Action<Bar> action); I want
I have an overloaded action in my Controller: public ActionResult AssignList(int id) { ...
I have two overloaded methods, one with an optional parameter. void foo(string a) {
I have a method that I'm writing that is calling another overloaded method inside
How can I invoke overloaded generic method in IronRuby? I have a .NET class
I have a method that was declared like this: public ButtonObject CreateStandardButton(type1 arg1, type2
I currently have two unrelated MVC3 projects hosted online. One works fine, the other
I'm in the process of creating a double-linked list, and have overloaded the operator=
If I have have some overloaded ostream operators, defined for library local objects, is

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.