Questions tagged as '.net'

1
answer

Insert ItemArray in SQL Server

I am trying to insert the record by the Excel registration to SQL, I have already loaded my excel, I go through it with a foreach in the following way: SqlConnection cnn = new SqlConnection(); cnn.ConnectionString = "Data Source=Localhost;Init...
asked by 28.12.2018 / 00:48
3
answers

How to interleave 2 colors in rows of the DataGridView DevExpress? In C # .Net

I used the RowStyle event with the following code: private void dgvPersonalizadoInterior_RowStyle(object sender, RowStyleEventArgs e) { try { for (int i = 0; i < dgvPersonalizadoInterior.RowCo...
asked by 09.06.2017 / 17:29
2
answers

XAMARIN, call another activity

I would like to be able to move in Xamarin for different Activity, from the MainActivity from a button I can go to the next activity (MenuNumeros): base.OnCreate(bundle); SetContentView(Resource.Layout.Main); Button button =...
asked by 05.04.2017 / 17:42
2
answers

license system in VisualStudio

Good Night Sres. at the end, finishing a project in VS2015 I would like it to detect when it is installed on a PC and deactivate it to avoid piracy I was reading about Sign an assembly but when I activated it and generated a .exe e...
asked by 27.11.2016 / 06:14
2
answers

Convert sql query to linq

I have basic concepts of linq, but I stuck with a query with group by someone could help me translate this query from sql to linq: select at1,at2,count(1) from tabla where fecha=trunc(sysdate) group by at1,at2 Greetings.     
asked by 12.08.2016 / 22:26
4
answers

DataGridView C #

I have a DataGridView in this way: and this is my code Clicking on the register button does this: foreach (DataGridViewRow item in dgvEstudiantes.Rows) { int indice = dgvEstudiantes.CurrentRow.Index;...
asked by 22.06.2016 / 03:24
1
answer

@ Html.DropDownList

good day. I am currently working with .net and I have problem I want to send information to a method of a controller by means of a @ Html.ActionLink , this method asks me for two values which are the LevelId that I have no problem in passing...
asked by 28.11.2018 / 16:32
1
answer

To work with asynchronous programming, do I need an asynchronous connection?

Good morning friends I am seeing some tutorials on the management of asynchronous programming with .net, in windows form .. many show concepts and basic practices on how to implement it. But my doubts is. when we want to work with persistence...
asked by 17.10.2018 / 17:16
1
answer

How do I get the context of my table in C # through entity Framework?

I am currently using entity framework 5, and what I want to do are queries, inserts, updates through entity framework. I already transferred my BD to an .edmx connection file in .NET. My current problem is that I want to do a test insert, but ac...
asked by 03.10.2018 / 18:38
1
answer

how to identify that the attribute of an object is a class type? C # [closed]

I'm doing a method in c # where I traverse an object taking out its attributes, its properties and see the value of the properties, but some of these attributes are classes that in turn contain more properties, I must access them, to I am doing...
asked by 21.09.2018 / 16:26