Questions tagged as 'c#'

1
answer

Doubt on how to publish a method in a web service, hide

What I'm going to ask, I do not know if it's possible or how. Well, I have a REST that is now okay. There, they changed a rule here that directly affects the REST API. I have a method that generates ID for partners. So far so good, but now I nee...
asked by 06.06.2014 / 18:33
1
answer

I can not call the function

I made this quick sort code below and I can not call the function. So far I have only done basic functions and can not find the error. public static void ordenar(int[] vetor) { ordenar(vetor, 0, vetor.Length - 1); } public static void...
asked by 09.06.2014 / 05:51
1
answer

HTML / JavaScript Connection WebService C #

I'm trying to make a connection to the bank using web service. I came up with an example where I created the sum and multiply functions in my WebService, but I'm having difficulty connecting my (HTML / JavaScript) to my WebService (C #). I...
asked by 06.06.2014 / 21:34
1
answer

Action redirect another Action using PartialViewResult

public PartialViewResult Index(string quantidadeRegistro) { int qtd; int.TryParse(quantidadeRegistro, out qtd); var bdPedido = PedidosAplicacaoConstrutor.PedidosAplicacaoEF(); var bdCliente = ClientesAplicacaoC...
asked by 13.06.2014 / 16:08
1
answer

Left join in linq is giving error in more than two table

I made this link: var resultado = ( from pdv in db.T_PDV join tarefa in db.T_TarefaParceiro on pdv.CNPJ equals (tarefa.CNPJ) into _trf from g1 in _trf.DefaultIfEmpty() join parceiro in db.T_OsParceiro on tarefa.IDTarefaParceiro...
asked by 13.06.2014 / 21:32
1
answer

Method does not act as expected

When I check the following code, there is nothing in any of the ComboBoxes . For me, everything is normal, I do not see anything wrong, what can it be? public FormExemplo() { ExemploList = new List<string[]>; CmbB.Enabled =...
asked by 24.05.2014 / 03:36
1
answer

Application C # does not load XML file by the application to start with Windows

I have an application that reads an XML file when it is opened, done this manually, but if the application to start with windows does not read the file.     
asked by 16.10.2014 / 13:25
1
answer

Error sending data to View

Inquiry to bring users in. public IEnumerable PopulaTabelaUsuario() { var banco = new DbBancoContext(); var listaUsuarios = (from l in banco.USUARIOS_PROCESSO select new{ l.ID_USUARIO, l.NOME_USUARIO }).ToList(); retur...
asked by 15.10.2014 / 17:56
1
answer

How do I enable a button after filling in the required fields?

I need the btnprint button to be enabled only if DropDown , txtDateInitial and txtDateEnd are populated. Could you help? <%@ Page Title="" Language="C#" MasterPageFile="~/FrontPage.Master" AutoEventWireup="true" C...
asked by 14.05.2014 / 21:50
2
answers

Failed to convert nvarchar value 'VINET' to int data type

I have this error: Falha ao converter o nvarchar valor 'VINET' para o tipo de dados int. Below my code: private void button1_Click(object sender, EventArgs e) { try { SqlConnection dataConn...
asked by 30.06.2014 / 00:58