Questions tagged as 'c#'

1
answer

How to implement the algorithm of the Theory of the six degrees of separation?

What is it? Theory that, in the world, it takes at most six bonds of friendship so that two people are connected. Question: I have been trying to implement this algorithm for some time, but I can not imagine how I would make the links...
asked by 24.04.2014 / 06:20
1
answer

Retrieve view value for controller

Goal: Retrieve view value for controller [HttpPost] I created a generic class with gets and sets public int ListarDadosCarteira_Resultado { get; set; } public string ListarDadosCarteira_Descricao { get; set; } public int ListarDadosCart...
asked by 27.04.2016 / 21:47
1
answer

How to make a scrollbar follow the last comment in a listBox in C #?

I'm creating a Chat in C #, which will serve as an interaction between a User and an Analyst, as a means to a Service Order, so far I'm getting it and I've already been able to make the connection correctly for enter the chat. My problem is t...
asked by 18.05.2016 / 08:33
1
answer

Difficulties writing a friendly url (global) in web config

I asked the same question in the English version but I did not succeed! I have an application that will be translated into three languages pt / en / es. So far I'm going to use GlobalResources, I have no problems with this, but I'm having a l...
asked by 18.07.2014 / 16:09
2
answers

How to reference eSocial webservices by Visual Studio?

I've already followed the instructions of this question li, reli, and have re-read the Pedro Gaspar tutorial several times. And I can not reference the eSocial webservices through Visual Studio. What I've done so far was: I installed the...
asked by 15.06.2018 / 20:30
1
answer

How to make a temporary powerup?

Hello. I'm developing a game in which the player throws some balls (shots), so I created a powerup that reduces the time between the balls thrown. I need to make the time between the balls return to normal after a certain time. void Update() {...
asked by 12.12.2017 / 23:44
2
answers

How to determine the search path of Controllers and Views?

I'm studying ASP.NET Core MVC on a MacOS. When I create a new project, the IDE automatically arrows my Views in a folder called "Home". If I change the name of this folder or change the Folder Views I get an error message when executing the p...
asked by 17.12.2017 / 06:12
1
answer

Query Entity Framework relationship Many to Many

I'm starting to use the Entity Framework and am wanting to query between two tables, Livroes and Autors , and their relationship is of type Many to Many . I do not know if it's relevant but I'm using the Code First method, so I...
asked by 21.02.2018 / 14:16
1
answer

What are the differences between ViewBag, ViewData, and TempData?

I was researching how to pass data to a view , or rather persist the data of a controller to the view . I would like to know among the 3 ways mentioned in the title: What are the differences between them? In which cases is the use o...
asked by 01.02.2018 / 15:12
3
answers

Dependency Injection in Controller Base

Well I'm learning to work with dependency injection now and would like to apply it to my project. However I came across the following difficulty, I have a base controller where it is inherited by three other base controllers that perform the ove...
asked by 20.03.2018 / 21:12