When I save the value of this Hastable it gives me error.
Follow the code:
Hashtable ht = new Hashtable();
ht.Add("index", index);
ht.Add("tipo", "1");
string tipo = ht["tipo"];
I have the following example of a software that uses the Entity Framework , which accesses a database with only one table named Produtos with the following fields:
Field int produtoid .
Field string nomeproduto .
Field...
I have a SqlServer 2008 base where all users can connect to it via Windows domain, this works correctly via SQL Management Studio.
I'm doing a C # Application in MVC, and wanted it when the user accessed the site, I could get that login and p...
Examples:
string data = "08072013";
string hora = "1515";
Is there a specific method for this type of format? I tried to use Convert.ToDateTime() , DateTime.Parse , etc. and everyone returned an exception. I'm currently doing th...
I'm studying the concepts of OOP and it gave me a question.
In Java I believe I can access all methods and attributes declared as public in a subclass even when I use a superclass type variable to reference this subclass.
But in C # I can...
Is it possible to have an IN clause with lambda expression?
Type:
context.tabela.Where(a => a.meu_campo_id_tipo_inteiro....)
let's say an in like this:
(2,3,4,5)
How do I put on the dots?
I have the following class:
public class Pessoa
{
public int id { get; set; }
public string Nome { get; set; }
public DateTime DataNascimento { get; set; }
}
I've developed a method to get the properties of it, but I can not use...
I need to exit foreach when the value is equal to 1
foreach (DataGridViewRow dr in dgvValetes)
if(dr.Cells["valor"].toString()=="1")
//Sair aqui
I do not know how to do ...