Questions tagged as 'c#'

1
answer

HttpContext.Current.Session is null in thread

Hello, I have a problem with my code. I'm doing a function that lasts about 3/4 hours in length, and so I decided to do that function on a thread so it does not block the overall system operation. after some research I found some solutions and t...
asked by 06.10.2016 / 20:49
0
answers

Change and Save the Row Color of the DataGridView

I want to change the color of the DataGridView line and up to you. Code: private void btnativo_Click(object sender, EventArgs e) { MudarCor(); } public void MudarCor() { dgvIngrediente.SelectionMode = DataGridViewSelectionMo...
asked by 08.10.2016 / 23:49
1
answer

How to configure Appium using Selenium Web Driver (C #) - Visual Studio

Good afternoon, I read some blogs on the Appium configuration, but I'm still kind of lost. I need to configure Appium using the Selenium Web Driver in VS (C #) . I currently work with Eclipse and Selenium Web Driver, but now I need to...
asked by 06.10.2016 / 20:28
1
answer

Doubt with Time asp.net mvc

I have timer that I'm testing and it returns me an error:    An exception of type 'System.Web.HttpException' occurred in System.Web.dll but was not handled in user code       Additional information: Response is not available in this c...
asked by 05.10.2016 / 22:10
1
answer

Display the ID of another table in the DataGridView

How do I display the ID of another table in my DataGridView ? I can display all fields except ID. var novaListaPessoaFisica = listaPessoaFisica.Select( pessoaFisica => new { PessoaFisicaID = pessoaFisica...
asked by 26.08.2016 / 03:13
1
answer

Join for linq c #

I have the following query in SQl Sevrer SELECT PT.id, P.nome AS Codigo, PT.topologiaid, TE.id AS TipoEntidadeId FROM [dbo].[propriedade] P INNER JOIN [dbo].[propriedadetopologia] PT ON P.id...
asked by 07.12.2018 / 22:13
0
answers

Download file with Selenium Chromedriver in headless mode

I'm trying to download a file in headless mode. I instantiated the driver like this: public static IWebDriver CriarWebDriver() { var options = new ChromeOptions(); if(HelperConfig.GetInstance().Headless) { options.AddAr...
asked by 12.12.2018 / 21:23
2
answers

Load BLOB for Image C # MySQL

I am trying to load a saved image into MySQL, however still unsuccessful. With the code below I can display all the other fields. Every time I try to add some method to display the image, an error occurs that does not display any search informat...
asked by 03.12.2018 / 01:24
0
answers

Is it normal to pass null variables from the client side to the service side?

My goal is to create three applications: WCF, ASP.NEW Web API and WPF. My question is: Is it normal, the data that we initialize on the client side ie (WPF) and that we move to the service (WCF) come to null? Example of my code - WPF...
asked by 18.01.2017 / 14:54
1
answer

Receive and Send JSON C #

In a local application "WindowsForm" in C #, I need to send and receive data via JSON to a PHP page, is there any predefined function for this?     
asked by 21.06.2016 / 20:44