Questions tagged as 'asp.net-mvc'

2
answers

Error connecting to oracle database using web programming in .NET

When attempting to connect to the bank, I got the error according to the attached image. My application is web in .net, visual studio 2010, database oracle sql developed 3.1.07. My code where you get the error: protected int GetRowCounts()...
asked by 21.02.2018 / 17:45
2
answers

Error creating form with entity framework

An error is occurring that I can not identify I know that the BeginForm in the Create.html of the entity framework, has some send options to do overload, one of them is the one I'm using, whose request, ActionName, ControllerName, FormMethod...
asked by 15.02.2018 / 16:35
1
answer

Use existing database

I have a database (SQL-Server); if I connect to it, will I still have to create EF classes and use a migration ?     
asked by 16.02.2018 / 15:01
1
answer

Recover data from asp.net View

I have the following problem, when I place an order in the quantity field when I put a certain number I have to get it if it is in stock in the bank, and if I have to decrease the quantity in the bank, I do not know how to pass the value of the...
asked by 16.02.2018 / 20:26
2
answers

Post Post with Model data that attributes are classes

I'm trying to send a Post through a form, but in the controller the attributes that are classes are coming in as null, how should I do it so I can get the data right so I can register with the bank? Controller [HttpPost] [ValidateAntiForgery...
asked by 09.02.2018 / 12:47
3
answers

Error submitting form with ASP MVC

I'm having a problem submitting a form developed in ASP MVC. Clicking the save button returns the following error message: System.InvalidOperationException: 'Não existe item ViewData do tipo 'IEnumerable<SelectListItem>' que possui a cha...
asked by 13.02.2018 / 20:14
1
answer

How to enable Migrations for Identity in Asp.net MVC

I need to unbind Identity from my Asp.net core MVC layer and throw it to another crosscutting layer of my DDD project. Based on Eduardo Pires' Equinox project, I managed to do it, but I'm finding it difficult to activate Migrations. For you to u...
asked by 07.02.2018 / 20:50
1
answer

System.NullReferenceException: 'Object reference not set to an instance of an object

I was trying to run my database but this error appears. System.NullReferenceException: 'Object reference not set to an instance of an object. with era null using System; using System.Collections.Generic; using System.Configuration; usin...
asked by 07.02.2018 / 03:21
1
answer

How to consume webAPI REST ASP.NET MVC [closed]

Well, this is what I'm developing, a Service Rest and an application that will consume this web-service (VIA BROWSER EVEN). Inmyproject,Ihavethemodel(inthecaseofmyOracledatabase),mycontrolerProductsController.cssthathasgetmethodgetproductnam...
asked by 14.02.2018 / 19:35
2
answers

When field validation is triggered, dropdownlists do not load in Asp.net core MVC

When I start a registration screen, the system loads ViewModel with combobox loaded:    IfI,forexample,clickthesavebutton,thefieldsinmyviewmodelarevalidated,butthepagedoesnotkeepthecomboboxloaded.Howtosolvethis?   publicclassPe...
asked by 05.03.2018 / 02:31