Questions tagged as '.net'

1
answer

Use Closure where when class is dynamic

I have a base class: public class MinhaClasse<T> : Controller where T : class { public List<T> BuscarVarios(string nome) { return db.Set<T>().Where(/*?????*/); } } How do I use cloister Where whe...
asked by 20.11.2015 / 16:30
1
answer

Closing requisitions

I currently make multiple HTTP / HTTPS requests for distinct sites using the HttpWebRequest and HttpWebResponse classes using .NET Framework 4.0. We are experiencing a problem when a moment arrives we can not acquire SSL / TLS conn...
asked by 19.11.2015 / 13:06
1
answer

Get and display data of an attribute of type class (association between classes)

I'm having a small problem getting a value of an attribute of type class . Person Class public class Pessoa { public string Nome {get;set;} public int Idade {get;set;} public virtual void Add() {...
asked by 21.01.2016 / 21:26
1
answer

How to convert HTML to RTF?

I have a project in Asp.Net MVC where I would like to convert an HTML string to RTF on the Controller. I have tried the following ways: Source 1 using(var webBrowser = new WebBrowser()){ webBrowser.CreateControl(); webBrowser.Doc...
asked by 18.02.2016 / 22:08
1
answer

Consume API fipe in C # [closed]

I am doing studies in C # and MySql. I created a combobox called Marca and another call Modelo . I want to run the fipe api to search for makes and models of vehicles. There is this address below informing you how to consu...
asked by 22.02.2016 / 15:27
1
answer

Faster way to add an item to an array, use a structure

Structure turma Public id_turma As Integer Public nome_turma As String End Structure Structure Disciplina Public id_disciplinas As Integer Public nome_disciplina As Integer End Structure Public Class F_Contentor Dim turmas()...
asked by 22.02.2016 / 18:08
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

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
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
1
answer

Filter by group and minimum value

I have the following table: ********************************* * IdPessoa * DataVen * Observ * * 10000000 * 01/01/15 * Teste1 * * 10000001 * 01/01/15 * Teste2 * * 10000000 * 01/01/12 * Teste3 * * 10000001 * 01/01/13 * Teste4 * * 10000001...
asked by 10.08.2015 / 16:09