Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
javascript object blank property value convert to null in asp.net web api

Hi I post an javascript object to asp.net web API,in that object some property value is blank like bellow

var o={
ID=1,
Fname="Tom",
Mname="",
Lname="Wilson"
}

but in web API model binding Mname blank value change as null .I don't want this ,I want original value in API model.

please help me ,how do I do this?Is there any option for javascript?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

solution can be found in bellow link

https://stackoverflow.com/a/44397786/4336330 for Asp.Net Core

https://stackoverflow.com/a/12734370/4336330 for Asp.Net MVC

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!