Questions tagged as 'c#'

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
1
answer

Solution for command in Unity 3D [closed]

I need a C # script that does 2 commands with a single EX key: (I want to make my character squat by pressing "c" and when I press again the character to rise again) could anyone help me?     
asked by 09.02.2018 / 21:41
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

Error storing byte in mysql db

I am trying to store what I get in db mysql, but this is giving this error I believe it is type of column error: 26/02/2018 09:25:14 User connected 26/02/2018 09:25:14 Login : Skell 26/02/2018 09:25:14 Error: System.FormatException: Input str...
asked by 26.02.2018 / 13:36
2
answers

Update UpdatePanel after running ajax without page refresh

Good afternoon, I need to update components that are within UpdatePanel page aspx after insertion via Ajax . The Ajax executes a function in code-behind in C# , and reloading of the entire page happens....
asked by 26.02.2018 / 20:22
1
answer

ASP.NET MVC - Pass data between Views [closed]

I have two tables: Tb_1 and Tb_2 ; both have a id column and are related to each other in a Microsoft SQL database. For example: I selected the # 2 record in Tb_1 . When you run the Create command, Tb_2 gets # 2 in your id...
asked by 13.03.2018 / 19:27
1
answer

How to overload a constructor and also call the base class constructor in C #

I'm creating an error in C # that should extend the class Exception , but should also add an extra property, like this: public class CampoVazioErro: Exception { public string campo { get; } public CampoVazioErro(object c)...
asked by 03.04.2018 / 15: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