Questions tagged as 'c#'

0
answers

ASP.NET MVC - Alternative to DDD [closed]

I'm going to start building an application let's say small, initially about 5 CRUDs and only 1 Core (this is a bit more complex in terms of business), but the goal is for it to grow with the passage of time, using .NET Framework 4.5.1 and Entity...
asked by 12.01.2016 / 11:31
0
answers

Format excel cells via code behind

I have a routine that generates an excel spreadsheet from an Oracle database. What happens is that in BD I have values like this: 3456.90 or 1900.00 When these values arrive in the worksheet, it looks like this: 3456,90 or...
asked by 14.01.2016 / 18:15
1
answer

Rename column with the entity framework

I'd like to know how I can solve the following problem. I have the class below: namespace CustomizandoCodeFirstMigrations.Migrations { using System; using System.Data.Entity.Migrations; public partial class AlteraTelefoneFixoRenom...
asked by 23.12.2015 / 14:38
1
answer

Extract icon from an application

I need to get the applications icon that is open on the screen. Applications icons, browsers (examples take the chrome icon, word icon and so on ...) I tried to do this: Process[] listProcesses = Process.GetProcesses(); foreach (Pro...
asked by 25.05.2016 / 14:23
1
answer

Change cell color

I need to change the color of the cell: I'm doing it this way dataGridView.Rows[rowIndex].Cells["nomeDaColuna"].Style.BackColor = Color.Yellow; But I can not get past the rowIndex I would have to pass the "line name"     
asked by 30.11.2015 / 08:24
0
answers

How to change the DOM and click using ABOT

How can I capture the return of a request from a submit button using Abot ? With the code below I can search through árvore DOM , modify the values of my inputs and capture the element that submits the form (or the f...
asked by 01.12.2015 / 21:12
1
answer

Transaction control between two different applications

I'm working on an application that is split into two modules, each in a language (.NET and Java). The A (.NET) application will manipulate the records of a table while the B (Java) application will handle it at the same time.    Scenario:...
asked by 31.07.2016 / 14:59
0
answers

Error loading XML in XDocument

I'm consuming a WebService with the following code WebRequest request = WebRequest.Create(link); byte[] bytesToWrite = Encoding.ASCII.GetBytes(xml); request.Method = "POST"; request.ContentLength = bytesToWrite.Length; request.ContentType =...
asked by 05.08.2016 / 20:00
1
answer

Create fields dynamically and set in the model

I'm developing a registration, where I have my fields according to my model: public class Autor { [Key] public int IdAutor { get; set; } public string Nome { get; set; } public DateTime DataNascimento { get; set; } } That is...
asked by 03.12.2015 / 19:10
2
answers

Error 500 when consuming NFeDistribuicaoDFe [closed]

I'm trying to consume the NFE download service on the farm: link Specification link Using .Net, C #, MVC But I have gotten the following error: The remote server returned an error: (500) Internal Server Error. The messag...
asked by 08.01.2016 / 15:32