Questions tagged as 'c#'

0
answers

Multiple redirection error

Before, I did not give this error when I killed the session. The error is this: How do I solve it? Esta página da web tem um loop de redirecionamento RecarregarOcultar detalhes A página da web em http://localhost:2374/Default.aspx resultou em...
asked by 25.11.2014 / 21:19
1
answer

How do I test methods of HtmlHelper, AjaxHelper, and UrlHelper?

I wrote some extensions to the MVC helpers. The problem is that I do not know how to do to test these methods since I do not have these objects in a test drive. How do I test the methods I've created?     
asked by 27.12.2013 / 23:17
1
answer

Logic - Given 2 strings, how to know how many moves I make when I transform the first string in the second

Hello, how are you? I have 2 strings, and I need to calculate the total number of moves to become the first string in the second string. string palavra1 = "gato" string palavra2 = "pato" replacing the "G" of the cat "P", I transform "cat" i...
asked by 09.12.2018 / 04:12
1
answer

Fill with Dynamic TemplateField

The code that causes the error is: dataValue = DataBinder.Eval(container.DataItem, _columnName); The problem is that templatefield has the following name gridview and ColumnName only reads to the point. This e...
asked by 24.06.2014 / 13:19
1
answer

System.OutOfMemoryException - When Entity Framework is querying very large data of type Varbinary

I'm trying to query a varbinary field that contains a 1.2 Gb file, using Entity Framework . See below: Test database CREATE TABLE [dbo].[BIGDATA]( [id] [bigint] IDENTITY(1,1) NOT NULL, [BIGDATA] [varbinary](max) NULL, CONSTRAINT...
asked by 07.07.2014 / 16:52
1
answer

Problems converting Session to Class in C #

I have the following variable List<MyFile> xmlDisponivel = new List<MyFile>(); This variable is a list of the following class public class MyFile { public string FileName { get; set; } public string FilePath { get; set...
asked by 21.02.2017 / 15:32
1
answer

Unity and UnitOfWork

Save Galley, I've created a small project to apply IoC using Unity from MS. First of all I've always used the UnitOfWork concept just instantiated it in my controllers , but now I want to inject them. When I start the web application i...
asked by 31.03.2017 / 21:51
1
answer

I made my first program and now I need to run it on the client. How do I do?

I made my first program and now I need to run it on the client. How do I? I made my database with SQL Server Express 2016. My windows is 64-bit. I thought of installing the same bank on the client, however the system there is 32 bits. Is t...
asked by 13.04.2017 / 20:08
1
answer

Retrieve IEnumerable values from View [duplicate]

I have a table / model called ItemPriceFactory: public class ItemTabelaPreco { public string Nome { get; set; } public decimal ValorUnitario { get; set; } public int QtdPacote { get; set; } public decimal ValorPacote { get; s...
asked by 27.04.2017 / 14:35
0
answers

Cezar Cipher in C # - (Error Could not convert String to Char) [closed]

Cezar Cipher in C # - (Error Could not Convert String to Char) Hello, I have a college exercise that you type a word and she plays the translation according to the posted shift. If you type AB and the offset is 3 then the translation is A...
asked by 08.10.2014 / 04:59