Questions tagged as 'asp.net-mvc'

1
answer

How to add fields dynamically and link them to the viewmodel in Asp.Net

I have a 1: N relationship between Person and Contact. In my view, I can list all the contacts of a client when it is opened. Ineedtoimplementthe"New Contact" button so that when clicked, dynamically add the fields (Type of Contact, Contact,...
asked by 01.09.2018 / 12:47
1
answer

Redirect ActionResult

Good to all. I'm trying to redirect from one Actionresult to another and have tried everything ever without success. At this point I find the following code: [AllowAnonymous] public ActionResult Index_GA_ER(string tkn)...
asked by 18.07.2018 / 12:06
1
answer

Asp.net MVC is it better to work with Areas or with Projects within a Solution? [closed]

I'm creating a portal and separating modules by Areas. But the demands are increasing a lot, there are at least 5 more modules to be written on the portal. What is the best way forward in terms of performace and organization? Continue in t...
asked by 17.05.2018 / 14:25
1
answer

Ajax in MVC - Select

I have a problem loading the select fields in my project. My forms are all done with Razor and only the select's (combobox) I load by ajax. Problem: When I start the form the ajax event to load the combos is triggered before I get the d...
asked by 21.03.2018 / 15:09
1
answer

Problems with embedding masks in PartialViews - Asp.Net Core

I'm having problems with bootstrap on all screens. I found the following interesting: All my Views that are returned in the form of "PartialView", the input masks do not work. For tests, when I create a View and a controller that returns a View,...
asked by 11.06.2018 / 13:14
1
answer

PartialView not loading in select2 pattern

I have a problem when I call my PartialView, it loads all the data in the View but not in the select2 format, in case it would be when clicking on the input the data appears, it is currently loading all on the screen. ExofaViewthatIuseandloa...
asked by 17.04.2018 / 16:40
1
answer

What are the differences between ASP.Net MVC and ASP.Net Razor Pages?

What are the differences and limitations between ASP.Net MVC and ASP.Net Razor Pages? I was curious, as apparently the Razor Pages use the MVC standard, but without the need to use a controller , I do not even know if this is really it, and...
asked by 12.02.2018 / 21:27
1
answer

Conducting a query linq C #

I have a controller where I make a Select to get a list, but it returns empty. public IEnumerable<Check> GetUserByNumberOfregistration(int numberOfregistrationUser) { CheckContext contextObj = new CheckContext(); var resu...
asked by 06.02.2018 / 00:53
1
answer

Select all items with the same ID in the same table

Very well, I'll try to be as clear as possible. I have the stock table where you will have several products there - > ProductId and its Quantity. In the same table the productId can be repeated with a different quantity, in my current code I...
asked by 17.02.2018 / 00:52
1
answer

How to return an error in C # with Json Result?

I'm starting now with the C # language, and I came across the following task on a system, I must do an error handling and return this in Json Result, the returned data must be collected and sent by email ... that is, when generating the error on...
asked by 25.01.2018 / 12:45