Questions tagged as 'c#'

1
answer

retrieve text from onmouseover statusbar

Is it possible to retrieve the status bar text? in Windows.Form in VB6 could. I would like to know if in C # it would be possible     
asked by 02.07.2014 / 22:25
3
answers

Exception in reading XML file

For weeks I've tried to resolve this error in reading XML. I'm creating an application for Windows Phone 8 in C #. The moment I click on a subject and so display the page with a listBox.    An exception of type 'System.ArgumentNullException'...
asked by 10.08.2014 / 23:00
1
answer

Which reference import for TableAttribute?

I can not get my app to find the table tag. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Dominio { [Table("Loja_Carrossel")] public class Carrossel { public int Id { get;...
asked by 09.06.2014 / 21:10
2
answers

Optimize operation with lambda

I have the following classes: public class Pedidos_Itens { public int ID { get; set; } public int Qtde { get; set; } public Pedidos _Pedido { get; set; } public int Pedido { get; set; } public Loja_Produtos _Produto; pu...
asked by 11.06.2014 / 14:09
1
answer

Ajax receive String list from a WebMethod

I need to pass a string list from a server method to ajax, but it does not work. If you pass only one string works fine. Follow the code: [System.Web.Services.WebMethod] public List<string> MontarGrafico() { var...
asked by 04.06.2014 / 16:43
2
answers

Expression yields no result, but there is data

This is my query in direct sql. select c.de_cnpj, c.DT_TransacaoV from T_CRM_StatusPDV c join T_PDV p on c.DE_CNPJ = p.CNPJ where DATEDIFF(DAY,c.DT_TransacaoV,GETDATE()) > 45 This is my lambda expression, which in my view corresponds to...
asked by 06.06.2014 / 22:13
1
answer

Using KeyPress event with Regex

I'm doing a C # application on Windows Form using .Net Framework 3.5 . In this application I have a textbox for the entry of CPF or CNPJ. I need this field to have only numbers and CPF / CNPJ characters (./-). I would like to validate...
asked by 10.06.2014 / 20:47
1
answer

Calculate date difference and compare with integer field in lambda expression

I have a date field (DateTime) and also a field of type integer. I need to make the difference between this date field and today's date (DateTime.Now) and compare if it is larger or smaller than my integer field. I made and gives this error. O...
asked by 05.06.2014 / 21:03
1
answer

This assembly does not allow partially trusted callers

I have my project, and in it I have a dll to access some methods, in development it works normally, but in the homologation environment this is giving this msg:    "This assembly does not allow partially trusted callers." What can it be?...
asked by 11.06.2014 / 00:27
1
answer

How to block editing of a record when it is being edited by another user C #

On a networked system (several using the same database), how do I know if a user is already editing the registry. For if in the case two computers edit the same record at the same time, a problem occurs because only the changes of the last user...
asked by 10.02.2015 / 23:07