I am looking for a way to send a table of data from view to action in .net core mvc. There are tones of explanations about sending data from action to ...
I am looking for a way to send a table of data from view to action in .net core mvc. There are tones of explanations about sending data from action to ...
I've read a bit about XML serialization in ASP.NET Core Web API. The default is JSON but XML might also be used sometimes. So I wanted to extend my AP ...
I am using Razor Pages. I have two fields that in a model that are NOT required: The two fields are UserId and StockSymbol. I have the following po ...
My development environment is.Net7 WebApi (out of the box) Below is the relevant code. DataAnnotations I have implemented localization. When the ...
I have a website using .NET 7 and Razor pages. I have the following case. I have a table with multiple rows. And when a value(a decimal or DateTime) c ...
I am working in ASP.NET MVC 5 and am trying to post a form back to the controller. The form basically has several repeating textboxes that . I am tryi ...
Project is an ASP.NET Core 6 webapp. I have a property that has decorated with [BindProperty] with some object arrays inside of it. I have a page that ...
I have created 2 types, Car and Engine I've setup relation between them: Scaffolded Create.csthml view doesn't have props that come from Engine ...
I am coding a solution where the user will submit a form, posting the values back to my ASP.NET MVC controller. My model is complex and the form field ...
I have a form submission in place. I am binding four properties. One is a string, one is an integer, the other two are class objects. Here is my backe ...
I have the following code where I am looping through a property in the model object as follows. The BlogDataItems is of type from using X.PagedList ...
.NET Core Web API docs seem to 'infer' that you can bind multiple complex types. I get an InvalidOperationException in my code when I do this? ...
I have a simple model: I've bound buttons to the two Commands and they work ok, I just can't work how to get the canExecute code to run more than o ...
I'm trying to build and form in which you can upload gallery items. but is not working for me and also I want to get the list of files in controlle ...
I´m trying to create a custom model binder that cancels the request when the given data is invalid. public sealed class DeploymentIdModelBinder : IMo ...
this is the method i want to test i am new in unit testing below is my attempt for Xunit test but i want to give it the real object manually by cod ...
I encounter an issue with Polymorphe Model Binding. I tried a different ModelBinder but without success. Sometimes I got an infinite loop with Defau ...
I have a controller that takes some model MyModel in a POST method. Inside of the controller method, there is a check: [HttpPost("mymodel")] public a ...
I'm trying to pass a value to an endpoint created with ASP.Net Core 6 API with the following details: Controller, Action & Model Request URL ...
In short my problem statement is that im unable to perform mapping from FromQuery to my complex object which is as follows. Here's my controller ac ...