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
  • 57,247
  • 24
  • 95
  • 149
DeveloperX
  • 4,568
  • 15
  • 22

0 Answers0