Questions tagged as 'c#'

0
answers

ASP.NET and C # - Gridview line requirement

Just as there is a RequiredFieldValidator in ASP.Net site forms, which requires filling in a field, is there any way to have a gridview with at least one row? For example, I have in my site (ASP.Net with C #) a part of resumes registration. A...
asked by 04.08.2016 / 15:44
1
answer

POST Error with Rest API - Windows Forms

I'm trying to make a POST this endpoint link (it's a simple API I've done with Django Rest) I'm using Windows Forms C # Follow the call: using (var client = new HttpClient()) { client.BaseAddress...
asked by 03.08.2016 / 01:02
1
answer

MVC5 (Asp.Net4.5.2) - RedirectToAction does not work in a single case

In my Controller Account, in Login Action, I have the following code: case "Sucess": string rule = CheckRule(model.username, model.Password); Response.SetCookie(SetAuthCookie(model.userna...
asked by 31.08.2016 / 23:58
0
answers

Send XML via POST

I have the following example to send XML via POST: public string EnviarXmlSoap(string methodName, string body) { WebRequest webRequest = WebRequest.Create("https://loja-s.tray.com.br/webservice/v2/ws_servidor.php?wsdl"); Ht...
asked by 02.09.2016 / 13:58
1
answer

Controller Edit - Inserting Values

My method responsible for editing is inserting values into the CONSUL_EnciclopediasCONSUL_Promocoes table instead of editing. If I have the options x with id = 1 and y id = 2 within the course a with id = 1 and I originally choose the opt...
asked by 12.09.2014 / 19:49
1
answer

Microsoft Speech Plataform in Portuguese

Hello, I have an application using speech recognition that works very well in English (en-US), however when I tried to use it in Portuguese (pt-BR) the results are terrible, it seems to be trying to recognize another language! Am I doing somethi...
asked by 02.08.2016 / 15:28
1
answer

Hide column and change size. GridLookUpEdit

I'm using a GridLookUpEdit, and I'd like to hide the first column, and adjust the size of the others, however I'm using gridLookUpEdit2View.Columns[0].Visible = false; and gridLookUpEdit2.Properties.View.Columns[0].Visible = false;...
asked by 27.07.2016 / 17:17
0
answers

Log4Net C # - does not write to the database

I'm using log4Net as the Log framework for a WinForms APP. public class Logger { private ILog _logErro; private const string LogErro = "LoggerErro"; public Logger() { Configure(); } private void Configure() { _logErro = LogManager.Ge...
asked by 28.07.2016 / 15:07
1
answer

Find / select database with C #

I have a form with a button and a simple datagridView, but my problem is that I have to look for my file in ".mdb" (Access database) on the computer, so it can be shown in the datagridView then the question remains: When I click the button, I...
asked by 28.07.2016 / 15:39
1
answer

Solver does not calculate solution for model

I have implemented a routine that makes calculation of the appropriate percentage of ingredients that is necessary to formulate a ration. To do this calculation I am using the Solver Foundation of MS . At first I hedge the decision...
asked by 23.08.2016 / 18:23