Questions tagged as 'c#'

0
answers

Compile error when adding "using MySql.Data.MySqlClient;"

When I add using MySql.Data.MySqlClient; the following error message appears: can not start debugging because the debug target 'c: \ users \ user \ documents \ visualstudio2018 \ Projects \ Application \ bin \ Debug \ Application.exe' is missi...
asked by 26.05.2018 / 23:47
0
answers

receive wbDO_DocumentCompleted event within task.RunSynchronously

Galera, I'm implementing a code to download pdf's from a particular site. Debugging it, I discovered that the tasks were asynchronous and the counter was lost and it ended up getting some page without downloading. I changed the process...
asked by 30.05.2018 / 19:23
2
answers

How to set the id = with 'instead of'

How can I set the id = with 'instead of' because if I try to run the script in chromeBrowser.ExecuteScriptAsync with the id="" it error, how can I do that? html code / javascript var x = '<label id="idteste">Testando' + '</l...
asked by 30.05.2018 / 19:23
1
answer

Error connecting to the database using the Entity Framework

I'm creating a WPF application, and I decided to use EntityFramework to perform the operations in my bank. I created a data model from an existing database in my MySQL Workbench, and the process was executed correctly, exporting all the tables a...
asked by 30.05.2018 / 19:55
0
answers

C #, sqlsever Popualar datagrid through Search

I'm using 3 layers, DAL, DTO, BLL; Can you guide me? How can I continue to enter the name of the person in the textbox, do the searching, through the procedure. All examples I've seen calling from the textbox, is in the click of th...
asked by 29.05.2018 / 21:58
0
answers

HttpPostedFileBase.ContentLength.ToString () returns "0"

Follow the code below: HttpFileCollectionBase files; I get the file size like this: var tamanho = files[0].ContentLength; //tamanho é 1250 So far it works normal, when I want to convert to string: var tamanho = files[0].ContentLength...
asked by 24.05.2018 / 18:04
0
answers

Problem in textbox Binding with C # using MVVM

I'm trying to update the properties of an object every time a character is added / removed from the textboxes but I'm not getting it ... I've read several topics on databinding and it seems to be OK ... I'm using the MVVM standard with WPF T...
asked by 24.05.2018 / 17:15
1
answer

Can not convert type "string" to "int"

<% foreach (System.Collections.DictionaryEntry entry in HttpContext.Current.Cache){ HttpContext.Current.Cache.Remove((string)entry.Key); } foreach (int key in diamondMethodList) {...
asked by 24.05.2018 / 17:20
0
answers

Problem updating object properties with data binding

I'm trying to update the properties of an object every time a character is added / removed from the textboxes but I'm not getting it ... I've read several topics on databinding and it seems to be OK ... I'm using the MVVM standard with WPF T...
asked by 23.05.2018 / 20:27
0
answers

Get Model value and pass it to a class in Controller C # /. Net

I wanted to get a value from the model and pass it inside a class that is inside the controller. Here's my class on Controller I wanted the variable "MyVariavel" to receive the value of my model public class classeTeste { p...
asked by 23.05.2018 / 19:04