Questions tagged as 'c#'

1
answer

How to read an xml saved in sql Database

I need to be able to read all the data in each row to put them in a bootstrap-table , does anyone have any ideas? I have this code saved in a field in my sqlserver database: <xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xml...
asked by 02.04.2018 / 17:33
1
answer

How the parameters received in a method should be treated

Cordial greeting. I am a student of development, I am developing a program and in a class I have a method with several parameters, the question that arises is that within the method as I should treat those parameters, should I assign them to...
asked by 25.03.2018 / 17:53
4
answers

How to fill a DataGrid with records obtained from a database?

I want to fill a DataGrid that has predefined columns and the data is obtained from a database. Previously I used the following code to fill in the DataGrid made with C # in Visual Studio 2017 in a window (WPF) public void llenarDataGr...
asked by 08.04.2018 / 02:38
2
answers

Get varbinary (50) from SQL Server to byte [] in C #

I'm doing a Login , in which the user's password stored in the Database is of type varbinary(50) I must recover this value, to later compare it with the key string entered by the user. In the Database I have the following:...
asked by 06.04.2018 / 15:27
1
answer

Why do I have a loop in my for cycle?

I have a method ActionResult which has a cycle for where I go through all the cookies to eliminate them when doing logout. The problem is that when I call the method from my view (This through a form ) I enter the meth...
asked by 15.06.2018 / 16:15
1
answer

Compare two input fields c # CompareValidator

I have a form that contains two fields input , one for the email and another to re-enter the mail and validate that they are the same, for this last I use the CompareValidator but it does not show me the error when switching focus to the s...
asked by 12.03.2018 / 23:41
2
answers

How to call an image from C #, stored in SQL Server. Using Stored Procedure and Entity Framework

I have this code made so far where I apply the SP "InsertEmployee", it adds records to the BD: var Insertar_NuevoEmpleado = _empleados.InsertarEmpleado(txtcedula.Text, txtnombres.Text, txtapellidos.Text, txtcargo.Text, txtdepartamento.Text, Co...
asked by 26.02.2018 / 19:27
1
answer

Print Report Copy to Accounting, Copy to Client, Copy to Treasury in Crystal Reports

Hello, I am printing the copies of my report with the following line Docrpt.PrintToPrinter(3, false, 0, 0); );//Imprimo 3 copias but how do I make the 1 copy have a label that says Accounting, Client, Treasury (to say the least), I need...
asked by 21.03.2018 / 18:19
1
answer

Xamarin.Forms playing audio

hi friends I'm trying to play an mp3 for the notifications of an App that I developed in Xamarin.Forms I was reading about it and very similar to SQLite I must handle this event with an interface, but I have trouble referencing it    Unha...
asked by 27.02.2018 / 18:02
2
answers

C # Entity with id Guid does not allow me to register in database

I have modified the question as a result of your requests: first, to clarify that my database was generated using the wizard that Visual Studio has (2015 is the one I use) with the ADO.NET Entity Model (see attached image), in which I designed...
asked by 01.03.2018 / 22:32