Questions tagged as 'c#'

2
answers

How to send and receive image by json? [closed]

I made an app in Xamarin that the person will have to sign and I need to send that image to the server If possible leave the code to accomplish such task     
asked by 04.02.2018 / 14:43
1
answer

Select all items with the same ID in the same table

Very well, I'll try to be as clear as possible. I have the stock table where you will have several products there - > ProductId and its Quantity. In the same table the productId can be repeated with a different quantity, in my current code I...
asked by 17.02.2018 / 00:52
1
answer

Create and display a badge on a page xamarin

I use xamarin.forms (Net Standard) and am having trouble creating a badge and displaying its value. I have a Tabbed Page that has a Grid with 8 cells. Each cell has an image and each image will receive this badge with its respective value....
asked by 23.02.2018 / 15:46
1
answer

Regex for addresses (Streets, Avenues and Etc)

I need a regex that takes the cases that have number in the name of the address and also normal address. Number always ends after address. Example: R March 25, 200. I need the address that would be: R March 25 E and address number: 200 Reg...
asked by 06.04.2018 / 17:26
1
answer

How to return an error in C # with Json Result?

I'm starting now with the C # language, and I came across the following task on a system, I must do an error handling and return this in Json Result, the returned data must be collected and sent by email ... that is, when generating the error on...
asked by 25.01.2018 / 12:45
1
answer

String size exceeds the value set in the maxJsonLength property

I'm trying to generate a Json file from a SELECT of the SQL SERVER 2016 table. There are about 4713 rows, this is in excess of the value set in the maxJsonLength property. Can I exceed this set value? Web.config <s...
asked by 13.04.2018 / 00:01
1
answer

View logged in user C #

I was able to get the user logged in using typed text in TextBox . But I do not want the user, I want the username. Database example: id = 1 nome_usuario = Administrador usuario = admin senha = 1234 nivel_acesso = 1 I want to get the...
asked by 15.04.2018 / 22:16
2
answers

Sort List by Field String

I have a list with attributes, of which I have the field of evaluations, containing: Excellent, Good, Regular, Bad, and Poor. The information for this field I get from consuming a REST API using JSON. Example: IEnumerable<minhaEntidade...
asked by 04.06.2018 / 22:49
1
answer

How to add one Form inside another?

I have two forms ( FormMenuPrincipal and FormFuncionarios ) in which when the% button of the Menu is clicked, I want to open the Officers form. I thought about adding a panel btnFuncionarios as follows: private void b...
asked by 10.04.2018 / 20:39
2
answers

How to run a subquery in LINQ C #?

How to run a subquery in LINQ C #? SELECT ap.ID FROM Aplicativo AP WHERE AP.Tipo IN (2,6) AND AP.ID NOT IN (SELECT filhoID FROM relacoesobjeto WHERE filhoclasse = 555)     
asked by 10.04.2018 / 19:11