1

I have problem when sending a decimal value to server, in fiddler my data is {"requestCode":116069}

my receiver function prototype is

    [AcceptVerbs(HttpVerbs.Post)]
    public ActionResult SaveBranchSale1(decimal requestCode)

but i get a error that means the requestcode can not be null

when i change {"requestCode":116069} to {"requestCode":"116069"} changing the value to string type the problem will be solved but i have a lot of datamodels that have many decimal datamembers ...

tereško
  • 58,060
  • 25
  • 98
  • 150
DeveloperX
  • 4,633
  • 17
  • 22

0 Answers0