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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:58:46+00:00 2026-06-12T08:58:46+00:00

I have a stupid problem here. I’m developing a web application with ASP .NET

  • 0

I have a stupid problem here. I’m developing a web application with ASP .NET MVC 4, EF5, and Ext JS (Sencha).

The thing is, by design (I don’t know why), Ext JS when doing ajax requests is converting js objects with null values to empty strings.

I’ll over simplify the example just for the sake of it.

So if I have a variable in JavaScript

icon_id : null

When I get the JObject server-side it becomes

icon_id : ""

when I pass icon_id as the parameter for the request. So when I write icon_id.ToObject<MyNETIconIDClass>() I get an exception which tells me it can’t convert from string to nullable int. Which is understandable.

I may be misunderstanding the logic behind this, but since I don’t want to mess around with Ext JS source code, is there any way I could tell the Json.NET deserializer to consider empty strings as null ?

And as far as I’ve seen, using converters would be troublesome because I would have to change every nullable int property in every class in my model just to make this work right.

  • 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-12T08:58:47+00:00Added an answer on June 12, 2026 at 8:58 am

    As per comments, OP was sending a GET request as opposed to a POST.

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

Sidebar

Related Questions

I have stupid problem with pow() in my application. Here is the code: double
I have a simple stupid question. Here's the problem, for years, my company has
Ok, I have a really stupid problem here, and I'm starting to get really
(probably it's a stupid thing but) I have a problem with a stack implementation
This may be an incredibly stupid question, but I have a web application that
Seem's to be a stupid problem but here I go... I have a table
well i have most probably an extremly stupid problem but could not figure it
I have a stupid WinCE application where I'm just trying to force an exception
I have a feeling I'm asking a stupid question here. I'm having trouble retrieving
I have a stupid problem. An jQuery.ajax request return me a full HTML text

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.