Questions tagged as 'c#'

1
answer

Button does not appear in App

I made a button, listview. The listview is working because I started it, but how do I do it with the button? Below my code: protected override async void OnAppearing() { base.OnAppearing(); //Task.Run(async ()...
asked by 14.09.2017 / 13:21
1
answer

Select a particular view for viewing - ASP. NET MVC

I'm learning ASP.NET MVC and I came across a situation that would like the help of you. I have a view that shows the result of a database query on the screen. Each record shown has an ID (ID), and I need to click change to hit something that...
asked by 25.07.2017 / 15:58
1
answer

checkbox in datagridview

I'mdevelopingaC#applicationthatdoeslabelprintingsothatIcanuseadatagridview,whichbringsupthelinesIneedtoprint,soInowneedtoputacheckboxtoselectthelineIneedtosendtotheprinter.Ineedtohavetheoptiontoselectallthelinesorselectonlyoneline,I'mhavingtrou...
asked by 25.07.2017 / 15:27
1
answer

Save files with the same name

The application saves photos of some parts here in the service, and we use a barcode reader that works as a keyboard, to read and save the data automatically, without the operator having to use the mouse, however when two photos have to to be ta...
asked by 09.04.2018 / 14:41
1
answer

Is DataAnnotation compatible with Json?

Hello! I would like to know if DataAnnotation is compatible with Json, since I am validating a form and would like to remove the doubt. I am using Angular on the front and returning my object in Json format, I would like to validate the return o...
asked by 28.03.2018 / 23:37
1
answer

System.NullReferenceException was unhandled by user code [duplicate]

When compiling my application I received this error from the image below, would anyone know how I could solve it?     
asked by 27.03.2018 / 14:47
1
answer

Biometry Reading

I'm developing a desktop system, where I wanted to register for biometrics. I use the Futronic Modelo: FS80H reader. I'm new to .net The idea is to save biometrics in String format to later be saved to a database.     
asked by 03.04.2018 / 21:34
1
answer

How do I delete xml data from within the program itself?

using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace Exercicios2 { public class Funcionario...
asked by 01.04.2018 / 22:14
1
answer

Error passing parameter to proc with dapper

I have this inside a foreach: parameter.Add("@PROD", item.CDProduto); parameter.Add("@Filial", item.filial); parameter.Add("@Cod_Oper", cod_oper); var result = _connection.ExecuteReader("sp_InsereVenda", parameter, transaction, commandType: S...
asked by 03.04.2018 / 23:26
1
answer

Reordering AutoIncrement in SQL

Hey guys, I created an ID table with Auto Increment, checking the table I saw that Bugou, has any command in SQL that reorders from the value 1,2,3,4 to the last one? just for the sake of reorganization. Thank you.     
asked by 12.09.2018 / 18:24