Questions tagged as 'c#'

1
answer

Error calling a stored procedure in c #

I have a problem wanting to call a stored procedure in c #, the stored procedure is to look for a name of a client, I already try it with the select which works for me but wanting to use a stored procedure does not work for me someone could help...
asked by 23.09.2017 / 16:42
2
answers

How to deserialize a JSON string to an object in C #?

I receive a variable called productos that contains a list of products in JSON format in the following way: [{"codigo":"Servilleta","cantidad":2},{"codigo":"Papelhig","cantidad":1}] I need to deserialize it in order to use the...
asked by 06.09.2017 / 21:36
1
answer

Validate that a record does not duplicate from C #

Good day, I request your support since I have a watchdog on a local team with a BD MySQL , of which I want to insert the attendance records in a BD in SQL-Server , I already generate both connection chains and I am inser...
asked by 19.09.2017 / 15:50
1
answer

Call form only once

I have two forms, form1 and form2. The user must enter certain data in the form1, in textboxes, and the entered data must be confirmed, but I do it with another form (form2), which has 1 textbox and 2 buttons (confirm and cancel), and "appears"...
asked by 19.09.2017 / 14:17
1
answer

Configuring the web.Config system.serviceModel

Good evening, How can I configure the "system.serviceModel" in the Web.Config, I'm getting the following error from the application:    The default endpoint element that references the 'VirusWS.scanFile' contract was not found in the clien...
asked by 21.09.2017 / 19:59
0
answers

How to create a visible gridMousePos?

Question is about how to create a make the box that the mouse points to be visible or to make the user notice the size and where to put it, the purpose of this is to create a system for creating objects of different sizes and which will occupy a...
asked by 16.09.2017 / 14:18
1
answer

Retrieve IDENTITY

Dear I have a problem that I was looking for I did not find a solution, I have the following tables in sql server 2008 and I have an application in Visual studio 2017, from WinForms WEB, with my connection to my database through CODE FIRST...
asked by 15.09.2017 / 20:01
0
answers

Read 100 characters of a text

I need to find a way to read the characters of a 100-in-100 text. I can read the first 100, but I can not find a way to start the second cycle. Apart from that, I still have to save the words that end with text ing. To identify the words with in...
asked by 17.09.2017 / 19:09
0
answers

restart Socket when exception occurs

I have a service that receives events by TCP , when an exception occurs in the method ClientConnected(IAsyncResult asyncResult) the application is closed, and when controlling the exception with a try catch the application is...
asked by 12.09.2017 / 20:08
0
answers

Market Payment - transaction_amount attribute can not be null - c #

I am programming with the MercadoPago API in C # and when I try to make a one-time payment, it always gives me the error:    4002: transaction_amount attribute can not be null However, I am sending the amount of the transaction in the "pa...
asked by 13.09.2017 / 13:48