Questions tagged as 'c#'

2
answers

how to call stored procedure with linq

Good morning everyone. I have stored procedure in sql server and I would like to call it in my c# application, via linq . Thanks in advance for any help     
asked by 16.09.2016 / 12:29
1
answer

Report from a form, without a database

My question is, can I generate a report (I do not know if I can call it that) or proof that it is something like this: Report: Payment date Client: xxxxxxxxx xxxxxx xxxx Date of payment: xx / xx / xxxx Signature It would be a pret...
asked by 30.10.2017 / 19:22
3
answers

Convert number in a string to two decimal places

Let's imagine a string with the following value: 12,126456 How do I convert the string to 12.12? I need to convert, using C #, so that the final string has a maximum of two digits after the comma. I tried String.Format("{0:#,00}", va...
asked by 02.11.2017 / 15:46
1
answer

Component Compound in C # does not show all attributes

I have a system in which I use a dataGridView to list the fields of a table with the property dataSource , and a textBox so that the written text serves as a filter (when I type something in textBox , use the text typed...
asked by 15.12.2016 / 20:04
1
answer

"The input string was not in an incorrect format" when filtering array

After sending a string that is a command keyword to my Arduino via the serial port, I am trying to get values in an application in C #, and a certain string and puts them in two different arrays using regular expressions, however this giving the...
asked by 18.01.2016 / 21:17
1
answer

Javascript Error button in IE9

I'm having a browser problem only in IE9, which occurs when I load an attachment and when I click the Add Attach (POST) button, as picture below: functionuploadResponse(frameId){$.ajax({type:"POST", url: "/Turma/AtualizarGridAnexo",...
asked by 18.12.2015 / 12:13
1
answer

How to make the computer choose between two characters

Well, I'm not sure if this is the case, but I'm not sure how to do this. class random, but I found some problems, as I'm working with string.     
asked by 01.06.2017 / 23:28
2
answers

Checking fields ComboBox, TextBox MaskedTextBox [closed]

How to create a method to check if all fields "ComboBox, TextBox, MaskedTextBox" are populated? Mine does not work public bool CampoVazio() { bool ok = false; foreach(Control ctrl in this.Controls) { if(ctrl is TextBox)...
asked by 24.05.2017 / 21:29
1
answer

Publish Asp.NET MVC site?

I developed a site in ASP.NET MVC and now I want to post it to my provider using FTP. I've done all the FTP configuration in Publish of VS 2013 that I'm using. When you send the Controllers , Enums folders and others are not sent to the...
asked by 06.06.2017 / 17:47
2
answers

Search only WEB date

I need to search the date acts from the Internet, in the code below the return is the date, time, minutes and seconds. public static DateTime GetNistTime() { var myHttpWebRequest = (HttpWebRequest)WebRequest.Create("http://www.micr...
asked by 31.05.2017 / 00:00