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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:15:37+00:00 2026-05-20T00:15:37+00:00

I have asp.net mvc application. i want to configure the object in jquery and

  • 0

I have asp.net mvc application. i want to configure the object in jquery and want to pass it to the the action of controller . where as in my script i am using this for configure data for the ajax call:

var arr=new Array();

arr.Push(0)=1;
arr.Push(1)=2;
arr.Push(2)=3;

var  peform = {
                 EmpId: eId,
                 DepatrmentId:deptId,
                 EmpAddress:strAddress,
                 EmpBirthDate:bDate,
                 EmpAccountsId:arr
              };  

I am able to get the values in param here but.
when I am trying this:

if(peform!=null)
            { 
                 var json = $.toJSON(peform);

                 $.ajax({
                 url: '/Load/SaveData',
                 type: 'POST',
                 dataType: 'json',
                 data: json,
                 contentType: 'application/json; charset=utf-8',
                 success: function (data) {

                }
        });
   }

it does not calls to action in controller. i think here :

 var json = $.toJSON(peform);

is not working as expect. is it need to add any js file to reference ? or mistake in syntax?
Or please suggest me any other remedy.

  • 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-20T00:15:38+00:00Added an answer on May 20, 2026 at 12:15 am

    Try the following instead:

    var json = JSON.stringify(peform);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC application using Authorization Attributes on Controllers and Actions. This
I have this ASP.NET MVC application that I now want to separate out the
I have created blank Asp.Net-MVC 3 web application and want to write my own
I have a Asp.net MVC web application, containing mostly text. I want to put
I have a ASP.NET MVC application using NHibernate and the application runs fine when
I have an ASP.Net MVC application and I'm using Forms authentication in SQL Server.
I currently have an ASP.NET MVC application that exists. I want to add a
I have an asp.net mvc 3 application. In this application I have a reminder
I have an ASP.NET MVC 2 application with a custom StructureMap controller factory to
This is the situation: I have an ASP.NET MVC 4 application. When I run

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.