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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:06:16+00:00 2026-05-29T06:06:16+00:00

This is my code: $.ajax({ url: someUrl, type: PUT, data: { id: id, message:

  • 0

This is my code:

$.ajax({
                url: someUrl,
                type: "PUT",
                data: {
                    id: id,
                    message: "bla",
                    date: this.Date
                },
                success: function (data) {
                },
                error: function (data) {
                    alert("Failed to save.");
                }
            });

someUrl is a method for saving in database, and it gets called and is succeeded, it add new row in my table in database.
But, I always get the alert. In ‘data’, there is error 500 and it says “The parameters dictionary contains a null entry for parameter ‘date’ of non-nullable type ‘System.DateTime’ for method ‘MyMethod(Int32, System.String, System.DateTime)'”.

  • 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-29T06:06:17+00:00Added an answer on May 29, 2026 at 6:06 am

    This is likely not an error with your AJAX code, it’s an error on the server side. Check logs on the server when you call someUrl.

    In other words, the is AJAX call is ‘succeeding’, but the server is returning a 500 error.

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

Sidebar

Related Questions

I have this jquery code: $.ajax({ url:'ajax/windowshop.php', context:'#windowShop', success:function(data){ $('#windowShop').append(data); } }) I want
I'm having a problem. I have this code: setInterval(function() { $.ajax({ url: url, success:
i'm generating this code $.ajax({ url: '/orders/modify/action/', type: POST, dataType: 'json', data: 'id='+10+ '&commento='+$('#shop_order_status_history_comments').val()+
i am using ajax with jquery .i have written this code: $.ajax({url:myurl.php, data:datastr, type:POST,
There is currently this Prototype code that does a PUT: new Ajax.Request(someUrl, { method:
I have this code (found from another StackOverflow question: $(document).ready(function() { $.ajax({ url: soundfile.mp3,
I m actually put of my min with this code .... $.ajax({ 'url' :
I have this code: $.ajax({ url : url, data : {ids : JSON.stringify(jsonids), hotel_id:
I have this code : $(document).ready(function(){ $(#search_input).autocomplete({ source: function(request, response) { $.ajax({ url: 'http://query.yahooapis.com/v1/public/yql',
I'm using this code: <script type='text/javascript'> $(document).ready(function () { //Check if url hash value

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.