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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:10:57+00:00 2026-06-17T09:10:57+00:00

The scenario: Sending search criteria to the server using json / Ajax in jquery

  • 0

The scenario:

Sending search criteria to the server using json / Ajax in jquery .. the ajax call should simply end there and not expect anything back (e.g. Simply post the Json data and stop ) ..

What is happening:

The data is being sent, but the returned data is also being received by the ajax call :

The code:

public ActionResult GetBasicSearchResults(BasicSearchCriteriaInfo basicSearchCriteria)
{
    List<BasicSearchResult> results = _client.GetBasicSearchResult(basicSearchCriteria).ToList();

    return View("BasicSearchResult",results);
}

The Ajax call:

$.ajax({
    url: url,
    type: 'post',
    data: JSON.stringify(basicSearchCriteria),
    dataType: 'json',
    contentType: 'application/json;',
    success: function () {
    }
});

The ActionResult should render a new View based on the Received data but is sending the data back to the Ajax method. Kindly guide for possible approach.

The main aim is to only send the Data as JSON to the server and nothing else.

  • 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-06-17T09:10:58+00:00Added an answer on June 17, 2026 at 9:10 am

    Thank you for the suggestions .. Have used the following approach to solving the issue..

    When the data is received by the server, it processes it and saves it in TempData variable and send a true boolean as JSON back to the ajax call.

    The Ajax call (upon receiving a true) then requests a new Action Method (using window.location) . That action method then uses the TempData variable to get the object and send to a Strongly Typed view for appropriate processing ..

    Thanks again 🙂

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

Sidebar

Related Questions

Scenario: Sending XML, generated using php, via cURL to an external server for parsing.
Here is the scenario: There are clients sending requests to a server (it will
Scenario We are using Weblogic Server 10.3.4 to run our webapp which has security
Scenario: I am sending function_name and function_id via AJAX. The function_name is displayed in
I'm using Web Api and have a scenario where clients are sending a heartbeat
Scenario first :- I'm using Entity Framework to do some queries, to build my
Scenario: There is a website with 700-900 concurrent unique visitors at any given time.
Scenario While using the Maven Ant Task artifact:deploy , I'm encountering the error java.lang.OutOfMemoryError:
Scenario : I am making a clone of a popular card game. There needs
Scenario: WAMP server, InnoDB Table, auto-increment Unique ID field [ INT(10) ], 100+ concurrent

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.