Questions tagged as 'c#'

1
answer

@ Html.EditorFor for DateTime property remove hh: mm: ss

In my model I have a field DateTime called DataReferencia , I formatted with Attributes , however when I am in view hh:mm:ss I just want to date 2/29/2016 . Model [Column("sdt_DataReferencia")] [DisplayFormat(ApplyFor...
asked by 29.02.2016 / 18:28
2
answers

Turning return Json into object list C #

I have a request for an API that returns me the following JSON: {"champions":[{"id":266,"active":true,"botEnabled":false,"freeToPlay":true,"botMmEnabled":false,"rankedPlayEnabled":true},{"id":201,"active":true,"botEnabled":false,"freeToPlay":t...
asked by 03.03.2016 / 17:16
1
answer

List most frequent items in the database using LINQ

I would like to list on the screen, type a ranking, the most frequent items in the database table through its name, for example: John appears 6 times; Joseph appears 4 times; Maria appears once. Would anyone help me?
asked by 26.02.2016 / 20:12
1
answer

How do I get all the HTML of this page as a string?

I'm doing a college job and so trying to read the HTML of a bradesco page ( Link I want HTML here ) The problem is that I can not get the HTML that is inside the frames and I do not know how to get it. Currently what I'm trying to do to ge...
asked by 02.03.2016 / 18:27
1
answer

Create a fixed header and footer for all pages

How to create a header with the logo and menu, and a footer with some information, and this header and footer / em> are the same for all pages? CTRL + C / / CTRL , because if I change some item, page. Is this possible?     
asked by 28.08.2015 / 14:32
1
answer

How to create connector for active diretory?

I need to create a connector for Active Directory, I found this example on the internet ... I heard about migrations ... Do you know how it works? DirectoryEntry directoryEntry = new DirectoryEntry("LDAP://example.com"); Can anyone expla...
asked by 28.08.2015 / 16:21
1
answer

static does not share values between web users

Can I use a static property without sharing values between different users? More or less like Session ? Ex: scenario: private static double valorRetorno; public CalculaValor() { valorRetorno = //recupera valor do cliente } pub...
asked by 26.08.2015 / 20:33
1
answer

Method that counts the frames of an Augmented Reality scene in C #

I'm doing an Augmented Reality job using Unity and Vuforia and I need to capture how many frames the scene I'm developing is using, I do not dominate much of C #, but my research apparently does not have any getFrame () method like ARToolKit can...
asked by 27.08.2015 / 15:33
1
answer

Edit two tables simultaneously in an "edit" view

I have two tables: Pessoa and Catequizando , with a ratio of 1: 1 and I want to get a "Get" to the data of the two tables, both "id's" are equal, > Catequizando catequizando = db.Catequizando.Find(id); Pessoa pessoa = db.Pessoa.Fin...
asked by 27.08.2015 / 18:33
2
answers

Remove specific data in a stack

I have not the slightest idea how to remove a specific data from a stack. I tried to minhaPilha.remove(); and it did not work. Console.WriteLine("<Pilha>"); Stack<string> minhaPilha = new Stack<string>(); Console.Write...
asked by 03.09.2015 / 13:18