Questions tagged as 'c#'

1
answer

Conversion is not valid

public int ObterTotalAcessos() { int obtertotal = 0; using (var connection = ServiceLocator.ObterConexao()) { var command = connection.CreateCommand(); command.CommandText = "SELECT SUM (ACESS...
asked by 13.10.2014 / 16:19
1
answer

Problem with Include in the Entity Framework

I have the classes: public class Estado { public int Id { get; set; } public string Nome { get; set; } public string Uf{ get; set; } public ICollection<Cidade> Cidade { get; set; } } public class Cidade { public int...
asked by 14.10.2014 / 05:05
1
answer

C # method to check a string

Well, could anyone here give me a boost by helping to create this method in C #? Method to check parentheses in a string of input. For example, the method should return verdadeiro to the following values:    (5 + 2) * 2) + (40 + 20)...
asked by 16.06.2015 / 23:00
2
answers

Make program in C # that runs online [closed]

Hello, I'm a beginner in programming and I'm already a little c # but very little! In my work was put a proposal for me to make a program in c #, html or java to store the release of the company's invoices (small company) and as I am the only on...
asked by 05.06.2015 / 19:32
1
answer

Problem with Jquery function

The function I created in Jquery, is not being called in the first click, it is only triggered in the 2nd. I'm using ASP.NET, C #, I need the panel component to start hidden, so by clicking on the p tag it appears and so calling the toggle () me...
asked by 27.05.2015 / 22:44
3
answers

How to close mysql connections in C #

Running the code below: DataSet bdDataSet; MySqlConnection conexao; public void inserir() { bdDataSet = new DataSet(); conexao = new MySqlConnection("Server=localhost; Database=teste; Uid=; Pwd="); tr...
asked by 24.07.2014 / 01:43
1
answer

What is the best way to make a mini-decoder?

Hello, I'm new to programming and would like to know the most efficient way to do a "mini-decoder". I took the idea of my teacher who gave a duty that we had to take the number and turn it into letters to form a word rsrs (maybe a little prezinh...
asked by 22.07.2014 / 23:13
1
answer

Opening cash drawer

I'm trying to send a command to open my cash drawer automatically by my application, but without success so far. I contacted the manufacturer of the drawer and printer (non-fiscal) Bematech and they indicated a download with a dll that I have to...
asked by 16.07.2014 / 15:50
2
answers

How to use Window.ClientBouds inside a class in XNA

I'm having trouble limiting the character's movement to the edge of the screen. In class Game1 which is my main I can use Window.ClientBounds , but when I use this function inside class Player1 it gives the error:    'The...
asked by 20.05.2014 / 16:37
2
answers

How to create user with password encryption?

How do I do in my ASP.Net MVC 5 and EF 6 application to save encrypted passwords in MD5 format when creating users?     
asked by 15.05.2014 / 21:43