Questions tagged as 'c#'

2
answers

Persistent error in C # database

I was doing a project but there was a problem involving OleDbCommand occurring in two different places: dr_alu = _dataCommand.ExecuteReader(); if (dr_alu.HasRows == true) dr_reg_notas = _dataCommand.ExecuteReader();...
asked by 11.08.2017 / 02:15
1
answer

Error with View returning a txt file

I'm using the following code in my Controller : public ActionResult geraBpa() { var caminho = System.Web.HttpContext.Current.Server.MapPath("~/Content"); StreamWriter file = new StreamWriter($"{caminho}/BPA.txt"); List<bpa...
asked by 22.08.2017 / 19:32
2
answers

HttpGet parameter is not detected

Good afternoon guys, I do not know why my parameter is not recognized, can you help me? The value does not arrive in C # but is present in the angle C # [HttpGet] [Route("carregarUsuarioPorId")] public HttpResponseMessage BuscarUsuarioPorId()...
asked by 09.09.2017 / 21:48
1
answer

Lambda or Linq brings me all the field and not just those of the expression

Just for learning, understand the section. I made a lambda from a bank with only 6 fields, like this: public List<LiberacaoDTO> getAutoriza(int idorcamento) { var lista = contexto.Liberacoes .Where(m => m.IdOrcamen...
asked by 27.08.2017 / 23:00
2
answers

Are there any differences between First and Single? [duplicate]

Are there any differences between First and Single? Are the two queries returned the same? And what about performance between the two is the same? Which of the two expressions is best to use?     
asked by 12.11.2016 / 20:07
1
answer

Missing Assembly Reference C #

I have a non-usage error of Directive or a Assembly Reference pointed to KeyCod and Modifiers Does anyone know what it would be and how can I upload it? private void lblAutoCod_MouseClick(object sender, Mouse...
asked by 22.09.2016 / 17:38
2
answers

How to click the ok of the java script alert via WebBrowser?

How can I disable all javascript alerts via the web browser? When I'm loading the page. <link rel="stylesheet" href="css/bootstrap-theme.min.css"> <meta charset="UTF-8"> <!-- Latest compiled and minified JavaScript --> <...
asked by 16.10.2017 / 14:47
3
answers

Go through inputs with jquery and check if there is a certain class in the input

I'm getting the inputs with the code var itensTabelaPresentation = ('#tabelaPresentarion > li'); and would like to go through them and go check if they have a certain class, how do I do this in a foreach? <ul class="nav nav-ta...
asked by 20.10.2017 / 19:24
2
answers

How to implement a function to return the sum of squares of the proposed form?

I did not quite understand the one proposed here. The whole doubt is in combiner, by statement, I understand to be a delegate. You see, they do not need to post codes, I would just like a way forward. Below the statement. The whole part marked w...
asked by 06.07.2015 / 17:51
2
answers

Webservice consumption only runs on debugging under the Visual Studio IDE

My WinForms VB.NET application consumes a webservice to perform some queries. When running in debug or release mode under the Visual Studio IDE, it works perfectly, but once distributed on client computers (or even on my own, running straight fr...
asked by 22.02.2017 / 14:51