Questions tagged as 'c#'

1
answer

Web API - Blocking specific calls to the server

I wonder how I can block calls that are not from direct Url's allowed on the server. Or is it possible to implement some other direct validation in oauth to block accesses other than those URLs?     
asked by 03.12.2018 / 15:36
0
answers

Convert RTF to String through SQL?

Well, I have a small problem, I was asked to convert a text made from a RichTextBox (VB 6) to a normal string, but this RichTextBox also works for Chinese characters and is here that the problem exists. I'm already in 2 days, I could not do t...
asked by 07.12.2018 / 11:33
0
answers

X509Certificate2UI.SelectFromCollection is closing the application

On a given client, when accessing the X509Certificate2UI.SelectFromCollection function the application is closing without even going through the error handling. This function opens a Windows dialog box for the user to select a digital...
asked by 07.12.2018 / 12:05
1
answer

NHibernate + .NETFramework 3.5

Would anyone know what the latest version of Nhibernate works in .NET 3.5? I got to search the site itself, but I could not find it. The one I own is 2.1.0.4000.     
asked by 29.11.2018 / 20:59
0
answers

How to receive data from a select correctly in react so that the selected / typed data is then saved?

How to receive data from a select correctly in react so that the selected / typed data is then saved? Thanks in advance, constructor(props) { super(props); this._handleSelect = this._handleSelect.bind(this) this.state =...
asked by 18.12.2018 / 19:58
1
answer

Policy Alias - What would it be? [duplicate]

Good afternoon guys, I've been studying C #, I've come to see about the using directive, and in the C # documentation it says it has 3 uses, one of 3 usage items says it's meant to create an alias for a namespace or a type, but what would i...
asked by 04.12.2018 / 18:34
1
answer

Read a txt file (Ping Application)

I have a txt file that each line contains the ip plus the server name: Example: Ip; servername (1st Line) Ip; servername (2nd Line) Ip; servername (3rd Line) What I intended was for my program to read this file and to ping each ip containe...
asked by 29.11.2018 / 18:11
0
answers

How to detect browsing using the WebBrowser class and capture information with C #

Hello, I'm doing an integration with the Free Market API, where I need to open a browser-based page with the page to allow the user to access the API of my application (confirm documentation here ). To do this, I intend to take advantage of the...
asked by 05.12.2018 / 15:14
1
answer

Exit a cycle of method calls

Let's imagine the following situation:    A company has the policy of donating 3% of its profit to social projects, and that donated amount must be paid as an expense to the company in the period. Briefly, we have this situation: Ridi...
asked by 05.12.2018 / 14:51
0
answers

Add row header in xml when enveloping

I use this function to add rows to envelop xml : string soapEnvelope = string.Empty; soapEnvelope += "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ws=\"http://www.betha.com.br/e-nota-cont...
asked by 11.12.2018 / 13:52