Questions tagged as 'c#'

0
answers

asp button within a modal does not trigger to click event

If you click on the button it makes me check the textbox , incorrect formats etc, but if the textbox are all validated it does not call the associated event, it Any idea ? the button is within a form with runat="server" that inherits from...
asked by 11.12.2018 / 19:32
2
answers

HTTP Status 415 - Unsupported Media Type

Follow the code below: var httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.Add("Accept", "application/json"); httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {accessToken}"); var result = await httpClient.DeleteA...
asked by 08.12.2018 / 19:09
1
answer

formatting encoding .net

Alright? I have a problem that is as follows: I retrieve the html from a legacy system and, I need to change that html pa then return to the browser with the new html. But when I retrieve this report the words with ç and accents, are with specia...
asked by 07.12.2018 / 18:34
1
answer

Error Json Line 0 position 0

I have already searched the site about this error and so far I have not found something that solves my problem. I'm trying to use restsharp, but I'm getting an error when passing data to .json My Page with the API <?php header('Cont...
asked by 15.12.2018 / 23:04
1
answer

EFD-Reinf XML Signature - "Reference Element malformed."

I'm new to the community and I'm developing a C # application for EFD-REINF. I had a problem signing in, and I got a lot of help from Pedro in this link . I'm still not able to send the XML from the R-1000 event to the remote production serv...
asked by 15.12.2018 / 23:44
1
answer

How to make requests via C #? WebRequest vs HttpClient

I have a project in .Net Framework 4.6.1, and in my research I concluded that I can use the WebRequest to make requests to other web services via the backend. I would like to be able to make requests using any HTTP verb . You can also us...
asked by 17.12.2018 / 13:12
0
answers

How to create the event for a textbox in runtime?

foreach (SobralFoodContext.Produto produtos in categoria) { string str = "<div class=\"col-sm-4\"><div class=\"card\"><div class=\"pricing-list dark-pricing\"><div class=\"prc-head\"><h4>" + produtos.Nome + "<...
asked by 12.12.2018 / 14:07
0
answers

How to bind a property of a child object inside a View in XAML

Hello, I'm using MVVM where I have an abstract class as default for my ViewModels: public abstract class ViewModel : INotifyPropertyChanged { public void Set<T>(ref T property, T value, [CallerMemberName]string propertyName = "")...
asked by 04.12.2018 / 17:13
0
answers

Problems sending Nfe 4.0 to the states of SP, MT and MS

I'm having trouble sending NFe 4.0 down only to the SP, MT, and MS states. Others are shipping normally. You're giving this section an error: HttpWebResponse responsePost = (HttpWebResponse)httpPostConsultaNFe.GetResponse(); Here is the...
asked by 04.12.2018 / 17:03
0
answers

What's wrong with my Update?

Good morning. I'm a beginner and I'm having problems with my Update. I wonder what I'm doing wrong. public string Update(Usuario usuario) { var sql = new StringBuilder(); sql.Append("UPDATE TBUSU SET " + Environment...
asked by 05.12.2018 / 13:52