Questions tagged as 'c#'

1
answer

DataTable from other DataTable

Good evening everyone, I have the following conflict, I am creating two DataTable in C# to go through the content of two tables that are filled by means of a BD , one shows me the code of the product and its name , and ano...
asked by 05.01.2017 / 01:48
1
answer

Error Recover when saving or retrieving a BD SQLServer image

When saving the Image in the database it is saved in a field of type Image the problem is that when recovering the image and receiving it in a variable type [] byte doing the correct conversion I can not visualize in the control destined, I...
asked by 17.01.2017 / 14:08
1
answer

Asp.Net project when uploading to server stops working

Working with my project locally works perfectly, but when I try to upload it to my server, some problem occurs and it marks the following error Any suggestions?     
asked by 17.01.2017 / 03:32
1
answer

Mouse enter / Mouse leave in C #

How do I remove the blue color that the menu has by default when I mouse over an option? This is what I did but it does not remove the sky blue color. private void menuoperario_MouseEnter(object sender, EventArgs e) { file...
asked by 26.12.2016 / 15:30
2
answers

Export to Excel in ASP.NET

I would like to know how to export from Asp.net a DataGrid to Excel (if you know of any other way please explain it), I get an error, it is commented on the line where it appears: protected void ImageButton1_Click(object sender, ImageClick...
asked by 26.12.2016 / 20:18
2
answers

Meaning of IController returned in ternary operator

Could someone tell me what this sentence is telling me? return controllerType != null ? _container.Resolve(controllerType) as IController : base.GetControllerInstance(request...
asked by 26.12.2016 / 12:52
2
answers

Edit an excel file by means of C #

I want to edit an excel file, similar to an invoice, fill in the fields of the columns with the data in the textbox that I place, when I click on a button (Generate Fact.), I open the file with the data already added in the fields....
asked by 09.01.2017 / 22:43
2
answers

Select objects associated with lists related to LINQ

I explain my scenario. I have a method that returns a list of objects Cuenta ( Id_Cta , Desc_Cta ) in the GetCuentas(filtro) method I have a method that returns a list of objects Usuario ( Id_Usuario...
asked by 09.01.2017 / 13:51
0
answers

Weird behavior of MySql

I am trying to make a query to the database so that I can list results close to the user (by latitude and longitude). I am currently using a query that is in the Google Maps documentation. The problem is when I try to limit to page (from 10 rows...
asked by 08.01.2017 / 17:39
2
answers

request data from the asp.net mvc c # driver

I'm starting a development on asp.net MVC C #. What I need to know is how I can, from the controller, call a subroutine of the model. The idea is to pass as a parameter a key, and that it recovers the corresponding description that is in a da...
asked by 02.12.2016 / 00:22