Questions tagged as 'c#'

4
answers

C # WPF How to separate a long string in multiple positions from an Array?

I need to create a getter and a setter for 14 Model properties that will be used to make Binding on xaml. Properties come from here: I have a field from a database table where it loads a very long string that contains information for 14 textboxe...
asked by 17.07.2017 / 18:17
2
answers

how to count integers in a vector in C #

I need help to run this exercise in C #:    Construct a program that counts the number of times each element occurs in an integer N vector. For example, in vector A: A = {4,2,5,4,3,5,2,2,4}   4 occurs three times; 2 occurs three tim...
asked by 12.06.2018 / 22:46
1
answer

Sending Email from a C # application [closed]

Is it possible to send an email directly from the C # application without having to use a server? If so, how do you do that? For example, if the user forgets the password and I want to send a new password directly from the mail, how can I d...
asked by 03.07.2017 / 22:20
3
answers

return NotFound () Web Api c #

I need to return a specific message, where it has Get , but it is not working as expected and I tried to implement it separately but it always gives error . [ResponseType(typeof(pessoa))] [ActionName("GetCNPJCPF")] public IHttpActionRes...
asked by 02.07.2017 / 02:20
1
answer

How to display dynamic images from a ListView?

I created a div with a ListView where CheckBox and a Image in> Page_Load . I need to click on one of the CheckBox by selecting from the image, it will be created dynamically in another Div , and at most the user can select 4 images...
asked by 27.10.2015 / 13:21
1
answer

Entity Framewor Core Database.SetInitializer [closed]

Does Entity Framework Core have Database.SetInitializer() ?     
asked by 24.05.2018 / 14:13
1
answer

Naval battle program C # [closed]

I have to do a naval battle game for college using windows forms in visual studio, the problem and I could not understand the logic to generate naval battle maps, I can not think of a way to do that. What should be done is to place custom boa...
asked by 30.10.2017 / 12:11
2
answers

How to get a javascript value inside a c # ASP.NET block [closed]

What I would like to do is to convert a value from within a JSON to Double and apply String.Format("{0:N}", valor_JSON)); so I would be converting 1000 -> 1.000 . But since it has already been answered you do not have t...
asked by 23.10.2017 / 20:52
1
answer

COM serial port

I'm trying to run a code every time, where it takes the value sent by the Arduino COM port, prints it in a textbox, and then generates an insert in the mysql database. It just read what was sent by the COM port and does not execute the insert...
asked by 03.04.2017 / 15:26
1
answer

Return Image Controller and Render in an HTML Tag Using Javascript / Jquery

I need to render an image returned from a controller to display it to users. I believe that this code is very close to the final result, but I can not reach this final result, a standard image is always rendered as if it could not be displaye...
asked by 07.04.2017 / 21:32