Questions tagged as 'c#'

1
answer

Method inside method or class within class

Created methods Above(), Below(), Highest(), Lowest(), Evens(), Odds(), Matching(), Repeating(), Unique() ... I need to create a structure / implement these methods one inside the other, as if they were organized in directories, within...
asked by 04.04.2016 / 04:27
1
answer

Change ConnectionString only in runtime memory

In the App.config of my application I encrypted the ConnectionString, I now need to decrypt in runtime but not updating in the App.config file. I am using the following code, but the same ends up changing in the file losing the logic of I lea...
asked by 29.05.2016 / 23:26
1
answer

SelectList with ViewBag

I am trying to make a SelectList using ViewBag . But when I run my code it shows where the information I'm trying to access is, for example: NomeProjeto.Models.NomeModel I'm using the following code in my Controller : v...
asked by 31.05.2016 / 21:01
1
answer

Extract data from a json file using SimpleJson?

json file that I'm using. { "url" : "https://scontent-gru2-1.cdninstagram.com/hphotos-xaf1/t51.2885- 15/s320x320/e15/12523558_1184627644899567_723648549_n.jpg", "low_resolution" : "https://scontent-gru2-1.cdninstagram.com/hphotos-xfp1/t5...
asked by 12.01.2016 / 21:29
1
answer

C # Help to load external DLL PNG resources

I created the Dll of resources with I PNG in C # when I compile to read in PictureBox of Visual Studio I get news of NUll or missing System.Resources.MissingManifestResourceException' occurred in mscorlib.dll...
asked by 03.02.2016 / 15:28
1
answer

Different windows (xaml) for Landscape and Portrait

I'm programming in C # using Visual Studio Enterprise 2015 applications for Windows Phone 8.1. I was able to make a simple application, a calculator, however I would like to know: how do I use a xaml for landscape mode and one for portrait...
asked by 12.01.2016 / 00:20
1
answer

ASP.NET form validation mvc!

I have a form that validates the fields when trying to send information, but I have a "novapagina" option where I would not like to validate the fields, would that be possible? In views <div class="container droppedHover"> <br/&...
asked by 28.12.2015 / 05:00
1
answer

Quantity limit on database query

public IList<DtoContrato> ConsulteListaPorListaDeIds(List<Guid> listaIds) { return Conversor(Persistencia().Where(x => listaIds.Contains(x.Id))); } My question is, if the list of ids has 100mil records for example, can nhiber...
asked by 24.12.2015 / 10:33
1
answer

How to generate an array of 3 columns where for each column there are 3 different possibilities?

The problem is this: In a vector I have 3 sets (A, B and C). Each set can have up to 3 distinct values (0, 1 or 2). That way I need to generate all the possible combinations for this case, with formula 3³ = 27 possibilities. Example: print...
asked by 01.03.2016 / 01:38
1
answer

Load DataSource from ComboBox using asynchronous method

I have a combo box of cities that populate it every time I start my form. I would like someone to help me create an asynchronous method using SqlDataAdapter to fill this combo.     
asked by 26.02.2016 / 14:23