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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:32:12+00:00 2026-06-15T22:32:12+00:00

I am using X-Editable Plugin in Asp.net. I have tried this: Usage with .Net

  • 0

I am using X-Editable Plugin in Asp.net.
I have tried this: Usage with .Net and C# Webmethods
But it gives me error. It is not calling the WebMethod as it should be.

How to solve this problem?
Please help.

Javascript:

 $('#username').editable({
     url: function (params) {                      
        return $.ajax({
           url: 'Default.aspx/TestMethod',
           data: JSON.stringify(params),
           dataType: 'json',
           async: true,
           cache: false,
           timeout: 10000,
           success: function (response) {
                     alert("Success");
           },
           error: function () {
                     alert("Error in Ajax");
           }
          });
      }
});

HTML:

<a href="#" id="username" class="myeditable">superuser</a>

WebMethod in Default.aspx:

[System.Web.Services.WebMethod]
public static String TestMethod(String params)
{
    //access params 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-06-15T22:32:13+00:00Added an answer on June 15, 2026 at 10:32 pm

    If you want to call a page method, first of all you need to make a request of type POST (also having content-type set will not do any harm):

    $('#username').editable({
        url: function (params) {                      
            return $.ajax({
                type: 'POST',
                url: 'Default.aspx/TestMethod',
                data: JSON.stringify(params),
                contentType: 'application/json; charset=utf-8',
                dataType: 'json',
                async: true,
                cache: false,
                timeout: 10000,
                success: function (response) {
                    alert("Success");
                },
                error: function () {
                    alert("Error in Ajax");
                }
            });
        }
    });
    

    Also the JSON will be auto deserialized on server side, so you should expect the name, pk and value parameters on server side (this is what plugin is sending according to docs)

    [System.Web.Services.WebMethod]
    public static String TestMethod(string name, string pk, string value)
    {
        //access params here
    }
    

    In your case the pk will be null as you haven’t set one.

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

Sidebar

Related Questions

Hopefully this is a quick one! I have an editable grid using 'clientSide' (local)
I'm using the jquery editable plugin http://www.appelsiini.net/projects/jeditable . I need my drop down selection
The basic usage of the plugin looks simple but it does not work for
I have been looking for some examples and solutions using the jquery-datatables-editable plugin and
There are topics about this, but not realy pointed at my problem. I'm using
In my asp.net MVC application I am using in place editors to allow users
I have a JQGrid plugin in my website, the table is loading OK, but
I have a table in HTML. I have made this table as editable by
I am using datatable and datatable editable plugin for inline editing ... I called
So I'm using this plugin: jquery-in-place-editor , I'm trying to make a POST request

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.