Questions tagged as 'c#'

2
answers

How do I make selenium webdriver switch between open windows?

I need to make the webdriver navigate between open windows. I've tried: this.chromeDriver.SwitchTo().Window(chromeDriver.WindowHandles.Last()); but I can not use Last (). Is there any missing?     
asked by 22.08.2016 / 16:35
1
answer

Search for objects in runtime

I have an application that will make simultaneous downloads of different data sources. In it I have DataGridView that will receive the result of a select and from the quantity of lines that come from that result I will have...
asked by 19.10.2016 / 21:16
3
answers

Is it possible to call the same method on all Controller asp..net mvc without having to repeat the code?

On my Controller Home, I have this: /// <summary> /// Aqui estou trocando o idioma da página de acordo cam a seleção do /// usuário. /// </summary> /// public ActionResult AlteraIdioma(...
asked by 19.10.2016 / 15:49
1
answer

List of View objects for controller

I have two Client and Address entities where the client has multiple addresses. At the time of filling out the form, the user can add two addresses in the same form and at the time of the Submit, would like to receive the data of the client and...
asked by 19.10.2016 / 04:33
1
answer

Get Variable from one Config directly to another Config

A doubt. Is it possible to get the value of a variable from a config directly inside the other config? Example possible below. Config1.config: <add key="webservice" value="http.teste.com" /> Config2.config: <add key="webservic...
asked by 18.10.2016 / 19:34
3
answers

Get C # class property

I need to get all the properties of a class that is of type class. Ex: public class Pessoa{ public virtual int? Id { get; set; } public virtual MinhaClasse1 prop1{ get; set; } public virtual MinhaClasse2 prop2{ get; set; } }...
asked by 29.07.2016 / 16:33
1
answer

Start Thread with Input Parameters for Void Method

I tried to initialize a Thread that has the function of processing a certain information by a method, so that the main execution line of the program keeps running. But I need to pass two values to this method. The fragment of the method that wil...
asked by 02.08.2016 / 17:03
1
answer

Capture results using HtmlAgilityPack

I am using this code to search results using the Html Agility Pack. It looks like this: WebRequest request = WebRequest.Create(texto); WebResponse response = request.GetResponse(); StreamReader reader = new StreamReader(respons...
asked by 19.07.2016 / 22:17
2
answers

Download all files from a folder in FTP?

Good morning, I'm developing a system that exchanges .txt files via FTP. I need to download all the files that are in a certain folder. Today I can download one file at a time, in case I pass the connection credentials, folder name and fil...
asked by 19.07.2016 / 15:37
1
answer

Doubts about class usage

Well, guys, good morning. How are you? I am writing a windowsform application, and in some situations I need to do multiple queries, insert and delete .. well, then I created a query class, a delete class and an insert class, where all my queries...
asked by 19.07.2016 / 12:29