Relative Content

Tag Archive for c#asp.net-core

Form submit appears to not be working in ASP.NET Core

I am running same code on ASP.NET Core, the get request working well and it populate the view but when it comes to form submission it says bad request. I am not sure why it is happening. It is not totally hitting the OnPost Method in code behind.

How can we update decimal precision for two places in c#?

I have a model object in which decimal? amount column. This has value from database is 35.00 but when passing from API It has 35.0. I’m trying to update decimal precision by two digit. something like 35.00. Anyone help to resolve this issue please?