Questions tagged as 'c#'

1
answer

How to cancel the execution of a function in C # [closed]

I'm developing a desktop application in C # WPF where there is a function responsible for sending email EnviarEmail() , when this function is executed it takes a certain amount of time for it to run completely. And when it is being execute...
asked by 05.07.2017 / 15:49
1
answer

Retrieve SqlCommand as string

I need to retrieve a DB information with a select and compare it to what the user is typing if they are different information, I allow the insert. If the comparison is the same I do not insert and display error message. Here's what I'm trying...
asked by 05.07.2017 / 16:51
1
answer

List is being populated but the properties are null

Hello, I'm using the following method in C #: public ActionResult Gravar(int pCodigo, string pDestino, int pRespDestino, int pOs, int pProjeto, string pEstabelecimento, string pObs, int pPim, string pAlmoxarifado, List<RequisicaoIte...
asked by 06.07.2017 / 21:40
1
answer

How to register a user with identity, with the data already inserted?

I have a method that inserts several data from an excel spreadsheet into the database, but there is some data, such as email, password, or concurrencyStamp (set to NULL), so I can not change user data by means of the code. [HttpPost] [...
asked by 22.05.2017 / 19:01
2
answers

Oracle DB and MVC 4 with error ORA-06413

I'm having a problem very similar to this here . In short, I have an application that runs with ASP.NET MVC 4, using the .NET Framework 4.0, using the same Oracle access DLL, the System.Data.OracleClient.dll Version 2.0.50727. I did wh...
asked by 22.05.2017 / 20:28
1
answer

Change the color of a td tag of a WebGrid mvc

This is WebGrid and you need to change the background color of Celula filled "IN PROCESSING": to Red : CSS<styletype="text/css"> .grid { margin: 4px; border-collapse: collapse; width: 100%;...
asked by 24.05.2017 / 14:59
1
answer

Asynchronous method blocking Queue

I'm using MVC and then I've addressed asynchronous methods for Actions in Controllers in order not to block access to other pages of the site while a long-running process is taking place. However, I have had problems in the following s...
asked by 06.05.2017 / 05:32
2
answers

Error in Update with EntityFramework

When I try to update an object in the database, I get the error,    Store update, insert, or delete statement   number of rows (0). Entities may have been modified or deleted since   groups were loaded. See    link for information on   under...
asked by 10.05.2017 / 02:28
1
answer

C # Template (SPA) does not run [closed]

I went to test the Single Page Application, using the visual studio template. Well, I created the project and did nothing, nothing at all, I just created the project and rode it and when running it gave me this error:    Severity Code Descrip...
asked by 10.05.2017 / 18:18
1
answer

The contents of the variable are not displayed in View

Instead of displaying the value of item.Endereco in the WebGrid what is displayed is a text @ item.Endereco.Length > 0? item.Endereco.Substring (0, item.Endereco.Length - 3): item.Endereco . Home In my current scenario I have to do...
asked by 13.06.2017 / 23:36