Questions tagged as 'c#'

2
answers

Help with textbox validation

Have a good afternoon. I'm having trouble completing a task, which is as follows: I have a customer registration, which when the user edits something from the register, when saving a screen is displayed, to indicate the reason for the chan...
asked by 21.07.2016 / 17:53
2
answers

query and change procedures for DAO layer C #

include, change, get Several procedures were created with the purpose of including, changing, querying, obtaining data, etc. The procedures were created in SQL Server 2014. I need to access these procedures via database connection using C # i...
asked by 14.07.2016 / 00:35
2
answers

How to manipulate objects in a Thread?

I have the following code: MinhaClasse[] obj = new MinhaClasse[QtdUsuario]; Thread th; For(int i = 0; i < QtdUsuario; i++) { obj[i] = new MinhaClasse(); th = new Thread(new ParameterizedThreadStart(Metodo)); th.SetApartmentSta...
asked by 28.11.2016 / 23:25
1
answer

Pass data from one form to another class [closed]

I have a very cute form1 with very good button and inside it I have a toggle button on-off. I have another class.cs and I have a condition in it, but will only execute if that button there on form1 is on. follows in Form1.cs: private v...
asked by 23.11.2016 / 17:31
1
answer

Get logged-in user from windows to automatically authenticate to a site published in IIS 7.5

I'm creating a web application with ASP.NET MVC 5, where when a network user accesses the address of my application via the browser, the systems already automatically pick up which user is trying to login to the application. I currently have to...
asked by 23.11.2016 / 14:50
2
answers

Encoding of special characters before going to the SQL database

I'm working with SQL Server 2008 and IIS7 to host my MVC website. For security reasons, the website on which I work at this time does not allow strings with special characters like '<' or '>' from <textarea> are se...
asked by 28.03.2017 / 16:54
1
answer

Unreachable code detected on connection to bank

Oops, good evening, I'm not sure what to do, but I'm not sure what to do, but I'm not sure what to do. explain why I thank :) Follow class and method the error is not con.disconnect ();: public class Conexao:IDisposable { private static...
asked by 31.05.2016 / 03:24
1
answer

Dapper Framework error: Could not load file or assembly 'Dapper, A strongly-named assembly is required

Hello, I use Dapper Framework to perform my SQL queries in C # Windows Forms, and I recently started a new project, and I came across this error:    Could not load file or assembly 'Dapper, Version = 1.50.2.0, Culture = neutral, PublicKeyT...
asked by 11.01.2017 / 23:07
1
answer

How to check if the LINQ expression does not come null

I have this LINQ expression: MaterialImage mainImage = images.First(i => i.IsMainImage == true); My problem is that images.First (i => i.IsMainImage == true) can return null if it has no image with the IsMainImage property checked as...
asked by 04.01.2017 / 20:31
4
answers

Update ListView after return with PopAsync in Xamarin Forms

How to update ListView after returning to View using PopAsync ? I need the ListView to load its items after the Address Insertion View to record a new address. OBS: The PushAsync or PushModalAsync re...
asked by 10.01.2017 / 19:30