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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:34:45+00:00 2026-05-12T09:34:45+00:00

The data on my page is such: var userIdCol = ‘3,67,78,37,87’; This collection of

  • 0

The data on my page is such:

var userIdCol = '3,67,78,37,87';

This collection of used Id’s is obtained from a Listbox via jQuery on my page.

All I want to do is post this list of UserId’s to my controller and display a success message somehere on my page. “Users have been updated.”

I am not sure what the signature of my controller should look like and how I should compose the jQuery when I want to pass a list like the one above?

Also, I am wondering if I really need the Controller action has to be an ActionResult?

In the past I have done other posts like so:

$.ajax({
 type: "POST",
 url: "/Issue/" + "Index",
 dataType: "html",
 data: {
 //page: 5
 projectId: $("#ProjectList").val()
 },
 success: function(v) {
 RefreshComment(v);
 },
 error: function(v, x, w) {
 //Error
 }
});

public ActionResult Index(int? page, int? projectId)
{
 //
 return View();
}
  • 1 1 Answer
  • 4 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-12T09:34:46+00:00Added an answer on May 12, 2026 at 9:34 am

    I’m doing almost exactly the same thing you’re doing, here is my jQuery:

        function saveConfigItemChanges() {
            var formData = $("form:1").serialize();
            $.ajax({
                "dataType":"json",
                "type":"POST",
                "url": "/Admin/PutValidationRules",
                "data":formData,
                "success":saveConfigItemChangesCallback
            });
        }
    

    And here is my action:

        [AcceptVerbs(HttpVerbs.Post)]
        public JsonResult PutValidationRules(ConfigItem model)
        {
            Dao.SaveConfigItem(model);
    
            return Json(true);
        }
    

    As you can see, you can return a JsonResult and it will pass the Json(true) to your success callback.

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

Sidebar

Related Questions

I found that PageProxy can be used to get data from page, but I
A jQuery AJAX request .post()s data to page.php, which creates $res and var_dump()s it.
How to send looping data from html page to php page using ajax. I
I read from the jQuery website, that get() loads data from the server using
I'm pulling data from my database that is as such (raw): long's streetWe’d tree
I'm trying to select various bits of data out of my insert.php page. Such
I have an inline script on my page as such: <script type=text/javascript> var rootPath
I have some jQuery code similar to this: var refreshStuff = setInterval(function() { $.ajax({
I have just meticulously followed MS instructions for customising a dynamic data page template
I have very very big html page/data. I need to fetch data under h1

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.