Questions tagged as 'c#'

1
answer

C # Registry Navigation

I have two buttons: Next and Previous in a Windows Forms application in C #, I am using a SQL statement: SELECT * FROM aluno LIMIT 1; for MYSQL. This instruction takes the 1st record. Now comes the dilemma, I am not able to do log s...
asked by 03.08.2014 / 22:46
1
answer

How to add groups and items in an ObjectListView?

Good afternoon, people. I will rephrase the question and try to express myself better ... I'm using 'BrightIdeasSoftware.ObjectListView', it's not the traditional ListView from Microsoft - Visual Studio it's much more complete For learn m...
asked by 08.09.2014 / 00:33
2
answers

How do I direct an Action to a view within a folder?

In my Controller UGController I have an Action named Cadastro that takes me to the View Cadastro.cshtml that is in the UG folder. That is: Controller: UGController Action: Cadastro() Link: /UG/Cadastro View: /UG/Cadastro.cshtml So norm...
asked by 22.07.2014 / 16:38
1
answer

Remove XNamespace in XElement c #

I need to remove the XNamespace that comes as default on an rss return. Here is the code below: static void Main(string[] args) { XNamespace ns = "http://search.yahoo.com/mrss"; var item = new XElement(ns + "content",...
asked by 28.07.2014 / 21:54
1
answer

How to import a .cur cursor into C #

I'm having a problem loading a cursor file into Windows Forms. I type the files in the folder but the program notices that the course file is not valid or is corrupted. But I really need these cursors for developing an application. I tried...
asked by 27.09.2014 / 04:15
1
answer

How to fill a textbox with a MySQL LIKE?

I'm trying to fill in the textbox, when the client is typing the initials of their name, the select goes into the bank and tries to fetch the information. However, I have no idea how to command I'll show you how my View is and my DAL. View...
asked by 25.09.2014 / 18:44
1
answer

Getting the contents of a JS variable in an ASP.NET C #

I have a function that takes the values of my inputs, and I want to take the values of the variable to my method to perform the insert. Does anyone have any tips on how to do this? function insert_veiculo() { var placa = $("#placa").val();...
asked by 23.09.2014 / 17:13
1
answer

Calling methods in class controller (asp.net web.api) to work while changing parameter name

I have a question on using the asp.net web api with angularJS that follows below. I have 2 methods in my controller class (ItemsController.cs): public void Put(int id, [FromBody]Item value) { } and [ActionName("UpdateItemFees")] [HttpP...
asked by 24.09.2014 / 20:54
1
answer

Linq returns result, but does not obey join

We're getting close. With that code, it almost worked. Then I changed the % from% to Distinct() and did not repeat, but still does not obey the DistinctBy() . What comes in linq does not match query . In all Reasons I brough...
asked by 24.09.2014 / 13:06
1
answer

How do I put a count in a linq that returns a list

I need to make a count , for the following situation. See the image below, which I have repeated some pharmacies, see their CNPJ (06626253003681 and 06626253001476 ). They are repeated because they are on different dates. What I need is t...
asked by 24.09.2014 / 20:43