Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

json

How to pass complex type using json to ASP.NET MVC controller

September 2, 2022 by Magenaut

I have a View that allows a user to enter/edit data for a new Widget. I’d like to form up that data into a json object and send it to my controller via AJAX so I can do the validation on the server without a postback.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, jquery, json Leave a comment

Why microsoft made JavaScriptSerializer obsolete prior to .net 3.5 SP1 and again active after that?

September 1, 2022 by Magenaut

JavaScriptSerializer is not obsolete after .net 3.5 SP1. Should I uses JavaScriptSerializer or the prior recommended DataContractJsonSerializer?. Also why it was made obsolete?

Categories ASP.NET, Q&A Tags .net, asp.net, json Leave a comment

how to convert xml to json using jquery

September 1, 2022 by Magenaut

The following code runs very well for this test XML page:

Categories ASP.NET, Q&A Tags asp.net, javascript, jquery, json, xml Leave a comment

ASP.NET WebService is Wrapping my JSON response with XML tags

September 1, 2022 by Magenaut

I’m not sure where I’m going wrong of what I’m missing.

Categories ASP.NET, Q&A Tags asp.net, c#, javascriptserializer, json, web-services Leave a comment

C# HttpClient An existing connection was forcibly closed by the remote host

September 1, 2022 by Magenaut

I’m working on an integration with Alternative Payments using their hosted page integration. Their C# SDK does not have this integration available at the moment, but as you can see it’s pretty simple and I made a small class to send the post request and get the JSON response.

Categories ASP.NET, Q&A Tags asp.net, c#, dotnet-httpclient, json Leave a comment

Deserialize JSON array(or list) in C#

September 1, 2022 by Magenaut

here is the basic code:

Categories ASP.NET, Q&A Tags ajax, asp.net, c#, json, serialization Leave a comment

Converting image into data:image/png;base64 for web page disaplay

September 1, 2022 by Magenaut

If one visits jQuery-File-Upload Demo page and will try to upload an image, and then will look at the JSON response, he would notice that a preview of an uploaded image is returned in a format:

Categories ASP.NET, Q&A Tags asp.net, c#, encoding, image, json Leave a comment

Passing parameter to WebMethod with jQuery Ajax

August 31, 2022 by Magenaut

I have a simple web method and ajax call and continue to recieve an error that saying that it can’t convert a string to an IDictionary object???

Categories ASP.NET, Q&A Tags asp.net, jquery, json, parameters, web-services Leave a comment

When is case sensitivity important in JSON requests to ASP.NET web services (ASMX)?

August 31, 2022 by Magenaut

I’ve done the following tests with JSON requests sent to an ASP.NET 2.0 ASMX web service (using AJAX Extensions 1.0 for ASP.NET 2.0) and it seems that case sensitivity is important in some situations but not in others. See the following examples:

Categories ASP.NET, Q&A Tags ajax, asp.net, javascript, json, web-services Leave a comment

Sending JSON object successfully to ASP.NET WebMethod, using jQuery

August 31, 2022 by Magenaut

I’ve been working on this for 3 hours and have given up.
I am simply trying to send data to an ASP.NET WebMethod, using jQuery.
The data is basically a bunch of key/value pairs. So I’ve tried to create an array and adding the pairs to that array.

Categories ASP.NET, Q&A Tags ajax, asp.net, javascript, jquery, json Leave a comment
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … Page30 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress