Questions tagged as 'c#'

2
answers

What is the strategy to identify a correct answer, without an exact comparison of String?

I have a program in C # that is like a QUESTIONNAIRE, however instead of alternatives there are times when the user must enter a response. The answer to the question is stored in a database and at that time the program only considers the respons...
asked by 03.05.2015 / 17:47
2
answers

Transform Stream into Byte Array

Good !! I have a Stream of a ZIP file of approx. 450 Mb, and I need to convert it to an array of bytes. To do this, MemoryStream (System.IO.MemoryStream) is used by default, it follows the code I used: Stream receiveStream = response.GetRes...
asked by 14.07.2015 / 13:18
2
answers

Namespace Installation

I have a test project that came without Namespace System.Web.Helpers and others. I searched and did not find it. It should be, but it is not. How to install the face? Well, I can hunt on the internet and add, but as I find it to be a b...
asked by 13.07.2015 / 22:51
1
answer

What is the difference of a WCF Service for a Duplex Service?

Follow the questions ... 1- What is the difference between a WCF Service and a Duplex Service? 2- When to use a Duplex Service? 3- Can we compare it to SignalR?     
asked by 13.07.2015 / 21:21
1
answer

Method terminates its execution unexpectedly when calling another method

I'm implementing a method that calls a method that should return a IEnumerable<TEntidade> . However, upon returning from this list the method that initiated the call simply terminates its execution without continuing to read the foll...
asked by 11.03.2015 / 14:50
2
answers

make a component in a repeater get enabled = false

I have a button inside a repeater. As it is in a repeater, it only appears in the DataBind () of the repeater. Using the variable and event, I get to this component like this: protected void rptDocumentosRepeater_ItemDataBound(object source, R...
asked by 09.02.2015 / 18:09
2
answers

Error in reference in C #

I'm having this error, does anyone know what it is?    Warning 1 The primary reference "C: \ Users \ Denilson \ Documents \ Visual Studio 2013 \ Projects \ SystemEmpillers \ Stackers.DTO \ bin \ Debug \ Stackers.DTO.dll" could not be resolved...
asked by 17.02.2015 / 01:42
1
answer

How to delete data from a table related to another

I have the following situation with a method of deleting directory: internal void DeleteDiretorio(Model.Diretorio diretorio) { using (var ctx = new TESTEntities()) { var dir = ctx.DIRETORIO.FirstOrDefault(a =>...
asked by 10.02.2015 / 14:42
1
answer

Parameter in URL is coming null

I have a page that will call another as below. if (hdfCdTipoStatus.Value == "2") Response.Redirect("/frmANACadastroBens.aspx?/CdProcesso=" + RetornaProcessoUltimaAnalise(int.Parse(hdfCdUsuario.Value)), false); It happens that in Load...
asked by 23.01.2015 / 17:51
2
answers

How to return more than one Database Entity in a LIST?

I have two entities, CATEGORY and TRANSACTION , in the database I also have these two tables. TABELA: CATEGORIA CHAVE: ID TABELA: TRANSACAO CHAVE: CATEGORIA_ID When done a select by entity performing a join : var _resul...
asked by 25.01.2015 / 01:17