Questions tagged as 'c#'

1
answer

Difficulty in positioning controls with bootstrap

I have cshtml , which needs to position some controls. I placed a table on the left side of the document. Now I need to position multiple controls labels next to the table and those labels one below the other. My table alread...
asked by 26.06.2014 / 17:24
1
answer

Complex linq query when passing parameters

I need to do a linq query, but I'm having a hard time doing it. I have 5 filters on the page. Being that three of them come from three dropdown (select). I can only consider select, if the text in them are different from "NO FILTER", first step....
asked by 26.06.2014 / 14:17
1
answer

Texblock - Make a text-changing event

I have already seen that the TextBlock property does not have an event when the text changes. Is there any way to do an event when the text changes? * Remembering that it is for WPF and not Windows Forms. This question is only for WPF...
asked by 18.12.2017 / 15:24
2
answers

ASP.NET Razor Pages error processing request

I'm implementing an example using ASP.NET Razor Pages and when trying to access the Index page I get the error that hears error in the request.    Error.   An error occurred while processing your request. Request ID:   0HLA7N3BM0ANB: 000...
asked by 20.12.2017 / 15:53
1
answer

What are the "User" and "CancellationToken" parameters used for?

I'm doing an implementation with API of Google Drive, and in the code block: credenciais = GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream).Secrets, new[] { DriveServ...
asked by 22.12.2017 / 14:34
1
answer

Perform crawling and debugging in .NET

While developing an application, there are times when I get lost and I want to understand how my code is running. For example, in which iteration of a given loop of repetition it is, what is the value of a given variable. Until then I did thi...
asked by 19.12.2017 / 13:34
1
answer

Use variable value not yet declared. Circular Reference in C #

I know the question seems absurd but a client of mine passed me an excel spreadsheet that has a variable that is used before having its calculation defined. In excel this calls Circular Reference. I need to do this in my code. Here's the p...
asked by 20.12.2017 / 17:20
2
answers

Send email via C #

Good afternoon, I need to send email via C #, so for testing, I wanted to know what are the credentials of outlook / hotmail to send emails     
asked by 03.08.2018 / 19:30
1
answer

Uninstall packages and all their dependencies at once

Is there any way I can uninstall packages and all their dependencies in a single command? Without having to uninstall one by one. Type:    Unable to uninstall 'System.Net.Http.4.3.3' because   'NETStandard.Library.1.6.1' depends on it How...
asked by 05.01.2018 / 17:43
1
answer

Multiple select list with items already selected using Razor

I'm using Razor to generate a SelectList like this: @Html.DropDownList("StatusImovel", new SelectList(ViewBag.ListaStatus, "IdStatus", "Descricao"), new { @hidden = "hidden", @multiple = "multiple", @form = "nulo" }) I need it...
asked by 03.01.2018 / 13:42