Questions tagged as 'c#'

4
answers

Remove object from an ArrayList

I have an arraylist of objects, and I need to remove an object from it as follows. I need this object to be removed if the 'box' attribute of it stores the same value that was typed in my TextBox . Why am I setting up a parking sys...
asked by 07.12.2016 / 15:34
2
answers

Entity Framework 6: Error in Provider

I'm using EF6 Code First. When performing the "Update-Database" the bank is created normally. But entering the data throws the following error:    No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.Sq...
asked by 29.11.2016 / 15:28
2
answers

Remove Sets from EditorFor

I created my class with type int [Required(ErrorMessage = "Preencha o Numero")] [DisplayName("Numero")] public int Number { get; set; }    Codeofview:<!--Number--><divclass="alinhado col-md-4"> <div class="fo...
asked by 13.12.2016 / 03:48
2
answers

Where to put the View Model rule

I need to create a View Model to use on the screen. I'm not sure where to put the button rule to be enabled or not. I thought of this implementation, I wonder if it's the best way. Another idea I had was to put the builder content in a...
asked by 05.12.2016 / 16:19
1
answer

Selecting Row in a DataGrid from a search. W#

Good afternoon, Does anyone have a code where I can select a Row in a DataGrid , from a search? Where I make my Button_Click to a TextBox with a certain value, doing the search in DataGridView , thus selecting...
asked by 18.08.2016 / 21:30
1
answer

Redirection with Timer MVC

I have a problem that I'm breaking my head to solve. I'm building an MVC site and would like to make an opening page with Timer rolling like this image: Solong,beauty.TheproblemisthatIwantitwhenIfinishthiscounteritredirectstothehomepage.H...
asked by 08.08.2016 / 22:00
1
answer

Problem running eventhandler

I have a class, which is executed under a button, it makes two select in a bank. I am trying to do this with EventHandler , however, when running the system, it executes, but gives the error in the line: OnDataChange(info);...
asked by 05.06.2016 / 01:29
1
answer

Alternative for If / Else

I have the following code: private void maskedTextBoxEAN_Leave(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(maskedTextBoxEAN.Text)) if (!ValidaEAN13.CalculateChecksum(maskedTextBoxEAN.Text)) CaixaMensage...
asked by 13.08.2016 / 03:18
1
answer

Mapping View - Entity Framework

I know that something like this has already been asked, but in the answers I found, I wanted to map the view to put the DataAnnotation [Table ("view name"]) or configure it in the Fluent API I created a view in the database called "Users". So...
asked by 03.06.2016 / 13:56
2
answers

Discover Broadcast address for sending UDP message

My Wi-Fi network interface contains the following settings: Wireless LAN adapter Wi-Fi: Connection-specific DNS Suffix . : home Link-local IPv6 Address . . . . . : fe80::95d7:bda0:eac3:ebf7%5 IPv4 Address. . . . . . . . . . . : 192.168.1.2 S...
asked by 28.05.2016 / 16:17