400 badrequest when passing int instead string in web api .net core 3.1
I need custom message for my request.
I need custom message for my request.
Currently, I created a ASP.NET Core Web app using VS2019, came across that ‘Add Areas’ option is missing from Context menu.
Here is my SQL query:
I created an Azure Web API on .net core 3.1. I started with the “weatherforecast” api demo.
It works, but I do not understand how the naming of the controller works.
I write a custom IdentityUser which is AuthUser.
I’m trying to understand the code block below. Everything is fine until the third argument of the tokenHandler.ValidateToken(...) method which is out SecurityToken validatedToken.
To be more specific let me explain what did I encounter.
I was trying to submit a List of data from view to controller. I was able to submit some data successfully without any problem. But the problem arises when the data is more than around a list of 250 items and more than that. When I click a submit button it passes a NULL value when I debug it. There is no error with my code because I have submitted a list of 100 items to the controller without any problem. I guess there will be something that I have to specify so that It will also send a large number of lists.
Here I’m not using ajax or any javascript code to submit the form. I’m submitting it directly to the controller using post request.
I want to add a button that triggers the action on the Controller inside the razor CSHTML for my ASP.NET project.
I am working on ASP.net core MVC. Initially, I created my database tables and via Scaffold-DbContext I have created my model in dot net core. Now I have updated my database tables and I want to update my model as well. So I have tried below
We need to register a new training course in the system. Save the Course Name, Course Price and Lesson List into the database. The number of lessons for each course is different, so the user will dynamically add fields to enter the name of each lesson. How to get the data entered by the user from the fields and save them to the list, and subsequently to the database?