Questions tagged as 'c#'

0
answers

Row Header definition of a DataGrid across the rows of a column of a DataTable using C # WPF

I have a DataTable with the following information: Column1 | Column2 1 | A 2 | B 3 | C 4 | D With this DataTable I would like to load a DataGrid using the first column of the DataTable to be the Row Header, thus A...
asked by 10.02.2017 / 19:50
1
answer

Error getting value of property through reflection

I'm having problems in the following line of code: var key = entity.GetType().GetProperties().FirstOrDefault(p => p.Name.ToLower().Contains("id")).GetValue(this, null); Whenever this line arrives it throws an exception    The object d...
asked by 19.01.2017 / 14:15
1
answer

Problems accessing an api web in a Xamarin Forms project

In my first screen of my app mobile I'm doing is the Login screen, however whenever I try to log the return it is    StatusCode: 404,       ReasonPhrase: 'Not Found' I have already confirmed and uri is correct, access via...
asked by 13.01.2017 / 12:19
1
answer

HtmlAgilityPack - does not format correctly

In my webservice, I always need to format the HTML that I receive. To make sure it gets correctly formatted I use the HtmlAgilityPack . HTML I get: <p> <div> <b>text:</b> <img alt="" height...
asked by 12.01.2017 / 20:27
0
answers

How to customize the message / return code Http of an expired / invalid token in Web Api 2 + Owin?

When my token expires and becomes invalid, I get a 404 (Not found) error return, but the truth is that it should be a 401 (Unauthorized). The problem is that I do not know how to customize this. I'm using Asp.Net Web Api 2 with Owin. public cl...
asked by 01.02.2017 / 21:44
1
answer

C # Executing a DDL command

I'm trying to run the DDL command below that creates the table I need, but even not returning error the table is not created, would anyone have any idea where I'm going wrong? public const string scriptCriacao = " if exists(select * from sys....
asked by 10.01.2017 / 20:02
0
answers

Bematech - Non-fiscal printer MP 4200 TH

I'm having problems with the non-fiscal thermal printer in relation to paper cutting done by the guillotine. I'll give you an example: Today the printer is printing normally, but does not trigger the automatic guillotine by cutting the pap...
asked by 10.01.2017 / 12:48
1
answer

Azure Scheduler

Does anyone know if I can do a simple console program, do some insert in SQL and put it to run in Azure's scheduler? (either free or that payment link ) I see some problems when running in the scheduler instead of the classic VM: Would i...
asked by 09.01.2017 / 18:10
1
answer

C # - Limit value in TextBox

Hello, I'm using C #, and I'm having some problems using a TextBox. I have a TextBox with this format: 192.168.100.1, to be more specific I am putting IP numbers. Iwouldlikeitfromthesecond.(100),thenumberwasnotgreaterthan255 I've tried usi...
asked by 29.12.2016 / 22:35
1
answer

Web App Questionnaires in ASP.NET Web Forms

I searched and could not find the correct term to correct my mistake. I created an AppWeb where the user chooses a subject in a DropDownList and it loads a questionnaire from the database. What happens is that if there is simultaneous a...
asked by 04.02.2017 / 15:48