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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:38:43+00:00 2026-05-19T12:38:43+00:00

i have a form which includes list of records. When user clicks edit image

  • 0

i have a form which includes list of records. When user clicks edit image on table modal div will show to him. i get this modal div with ajax. Now after changing some fields i am posting it via ajax. I watched to firebug. it sends parameter. But when i debug code in VS method calls but no parameter has been send. i have done it before in other pages. but now i can not. What problem can be here in my code?

C# Code here

 [HttpPost]
 //[Authorize(Roles = "Operator")]
 public ActionResult EditRow(string Name, string SecondName)
 {          
    //code goes here
    return Content("Saved");
 }

jquery ajax code is here

  $.ajax({
       type: 'POST',
       contentType: 'application/json; charset=utf-8',
       url: 'EditRow',
       data: { Name: "php", SecondName: "MVC" },
       dataType: 'html',
       success: function (response) {
        //some code goes here
       }
      });
  • 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-19T12:38:44+00:00Added an answer on May 19, 2026 at 12:38 pm

    Have you tried to simplify your Ajax call to:

    $.ajax({
        type: 'POST',
        url: 'EditRow',
        data: { Name: "php", SecondName: "MVC" },
        success: function (response) {
            //some code goes here
        }
    });
    

    If this doesn’t work there must be something else in your code that makes your code invalid. Maybe some base controller action filters you forgot to put there or some custom model binders or some other global registration.

    Sending complex JSON to server

    If you’d like to send complex JSON using the same technique, you can read my blog post and use the simple plugin that will make it possible to send complex JSON objects to Asp.net MVC controller action.

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

Sidebar

Related Questions

I have a form which for some questions would ask if something was included
Description I have a payment page that includes a form for entering bank account
I have a members only website in which the logged in users fill in
I have a html page in which following master reset css is included. I'll
I have this code for login validation using a Struts2 action class which calls
I have a rather complex model that I am using to render a form
The russian alphabet includes many letters that are the same in the English alphabet.
I am doing a project in the university and it includes a MySQL database.
I'm having an ongoing issue with dealing with getting lists of items based on
I'm writing a computer program to play the word game Ghost. Here's how the

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.