Questions tagged as 'asp.net-mvc'

2
answers

Post Angular Method

Hello, I'm developing an application using BackEnd as ASP.NET C #, and with Front Angular5! I'm doing a post method for the first time and it's not flowing well! In the BackEnd I have a method as follows: [HttpPost, Route("api/usuario/no...
asked by 19.04.2018 / 07:19
2
answers

Razor language regionality

I'm having a problem with Razor (using MVC 2.1 .Net Core) when generating the screen, as below code, it is appearing the correct date in my Local development environment, but after Publish appears in English in other environments, could you forc...
asked by 09.10.2018 / 20:36
1
answer

What is the problem with this form?

Well, I have an asp.net mvc application that will have only one page, which is index.cshtml. On this page I have a contact form, so he is not sending the message he has received to my email, someone would know how to help me solve this, here is...
asked by 09.02.2018 / 18:50
1
answer

Why am I not handling the _Layout file when I'm handling an error?

I'm doing an error handling using Json Result, when I displayed the error message it should display the formed page as well as it rules in the _Layout file, so the page is loading all white, does anyone know how to solve it? Below the image of h...
asked by 30.01.2018 / 17:04
2
answers

Attach Dropdowlist Item and a li asp.net mvc

I have a View with dropDowlist that contains data that comes from the database and right down I put a buttom that when I click it will attach the selected dropdownlist item to a list, I made a code here but it is not appending if I putting defau...
asked by 01.02.2018 / 01:42
1
answer

How to fill a Dropdown List with ASP MVC

Good afternoon, how can I populate a dropdown with data from a database using pure Ado.net (code) and without using Entity framework? I have two tables in my database that relate. First I must register a department and when registering a user...
asked by 07.02.2018 / 16:29
1
answer

Error handling in C #!

Galera, it's the following, in my application I would like a page to appear with the error occurred, but this page has all the formatting proposed in the layout, so this is not happening because it only generates a blank page with the error code...
asked by 29.01.2018 / 11:12
1
answer

Save the form so that when it returns an error it does not delete the inputs

I am doing a registration system, when the data is correct it saves the bank in a good, when it gives error it returns where it is wrong but it erases everything that was filled or is not viable what I want is that when the user tries to registe...
asked by 29.12.2017 / 15:20
2
answers

Api with Array of items does not receive the data posted

I have an Api that receives the data posted as it shows the image, it happens that the data is coming empty, I appreciate the help. //http://localhost:49764/api/unidade/carrinho/consultaUnidadeAtendimento[HttpPost][Route("unidade/carrinho/co...
asked by 07.12.2017 / 13:30
3
answers

BundleConfig.cs is really necessary

I'm reading something about MVC, WebAPI and AngularJS. All the examples I have taken, either from Macoratti or others ask to do some configuration in the BundleConfig.cs. However I use VS2017 and when creating the test project, in the App_Sta...
asked by 06.12.2017 / 23:57