Questions tagged as 'c#'

1
answer

Create new file discarding current XML lines C #

I have an XML file like this: <?xml version="1.0" encoding="UTF-8"?> <Message> <MessageId> <ServiceId>SolicitaLogon</ServiceId> <Version>1.0</Version> <MsgDesc>Solicitação do...
asked by 16.06.2018 / 06:29
1
answer

OAuth with Dependency Injection

Hello, I'm starting my studies with OAuth, and right away I came across a problem. I created the famous 'Startup' class, and I call it my provider as follows: public partial class Startup { public static OAuthAuthorizationServerOptio...
asked by 10.05.2018 / 15:36
1
answer

How to make Generic with 2 classes in C #

Good evening, I'm having problems using Generics in C# , I'm programmer Java and I'm learning to use C# . I want to use Generics in a class in the Service package, I'm implementing the class for the mapped...
asked by 10.05.2018 / 02:49
1
answer

How to create file at runtime?

In my application, I need to convert a string that contains XML to RTF . The way I found to accomplish such a task is with the following code, which uses files instead of strings. So I would need to create a XLT , XSLT , RTF format file d...
asked by 09.05.2018 / 15:06
1
answer

How to give a POST on the page with UPLOAD property without going into looping?

Looking at the internet I saw some sites saying that when you have a Upload property on the page you can not give POST in it because it looping . I have an application that creates / deletes folders and displays a POST message on the p...
asked by 08.05.2018 / 22:39
1
answer

Assemblies not found for Visual Studio

Hello, I'm working with Visual Studio a short time and it's the first time I come across this message when trying to debug the program:   (C: \ Program Files \ x86) \ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ 15.0 \ Bin \...
asked by 01.05.2018 / 08:20
1
answer

C # - Decode array JSON

I need to get the id of this code JSON using C# :    [{"nome":"Gabriel Ferreira","cidade":"São Paulo","uf":"SP","id":"4274892"}] Someone can advise me how I can do this in the best way, since I already tried wit...
asked by 06.05.2018 / 05:22
1
answer

How to inherit a form in C #?

I have an application with the FormFuncionario form. I want to inherit all the characteristics of this form for a second class, called ControlFuncionario , where it will be responsible for performing several events, and even accessi...
asked by 03.05.2018 / 21:08
1
answer

Discover XtraReport element page

In my application, I am generating a report using run time with methods like this below, where I start on the screen a label . How could I find out which page was printed on label ? I need to store the page number in an array , fo...
asked by 03.05.2018 / 18:51
1
answer

Entity Core, relationships

In my project I have two models: student and occurrence. In the routine of registering / editing a student, it is quiet, however, in the routine of registering an occurrence, I do not know why, the entity saves nothing of the occurrence, but...
asked by 03.05.2018 / 03:29