Questions tagged as 'c#'

1
answer

Use Task with database connection in C #

I am developing a task that basically executes a series of stored procedures for each branch that exists in our company, for this I use the task that comes in the .net framework 4.0 but when executed 50 times the procedure throws an exception in...
asked by 07.05.2016 / 01:39
2
answers

Load string in DataGridView

I create a DataGridView with a CheckBox column to be able to mark one or another row. As data source of the DataGridView I pass a list of strings. When I passed the list, I expected to obtain a datagridview that showed me as the first column,...
asked by 30.01.2018 / 12:19
2
answers

Problem generating a path with Path.Combine

I have the following problem, which has a bit of a head ... :( I am formatting 3 string to form a path with Path.Combine (C # and WPF) in the first string has its origin in a TextBox (this is the problematic), the other two I get from an object....
asked by 28.06.2018 / 16:17
2
answers

Accessibility inconsistency c #

I have the following class that marks me error in the second word Address of the virtual method: public class Profesor { public Profesor() { } public Profesor(int id, string nombre, string ape1, string ape2) {...
asked by 18.11.2016 / 01:09
1
answer

How to execute a transaction within a Command

I am making an application that will register an order and for that I need to use the transaction sentences. I have developed an attempt that I will attach below and the following error:    Unhandled exception of type 'System.InvalidOperation...
asked by 31.10.2018 / 14:04
1
answer

Visual Studio and .NET Framework versions supported by SQL Server 2000

I would like to know which versions of Visual Studio and .NET Framework I have to use to connect to a SQL Server 2000 data server. I have read that some versions are not compatible. Thank you.     
asked by 14.06.2016 / 19:27
2
answers

to use to generate pdf with c #

Sorry, I need to generate the format of a Mayan calendar with c #, it is formed by images and I do not know what I can use to do it, it is not a database report, there are 10 images that I need to print. it's something a format like this link...
asked by 23.02.2016 / 02:38
6
answers

Problem when returning a list of JSON objects with AJAX, I can not access the properties of the object

Good morning, I have this web service: [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string ObtenirProvinciaByPoblacio(int CodiProvincia) { clsCRUD _ou2 = new clsCRUD(); try { _ou2....
asked by 28.01.2016 / 17:08
1
answer

A method name is expected C # Load SQL data

using (SqlConnection cn = new SqlConnection ("Data Source = ACER-E5; Initial Catalog = mantenedorclientes; Integrated Security = True")) { cn.Open (); SqlCommand cmd = new SqlCommand ("Select rut,nombre,apellidop,apellidom from clientes...
asked by 10.10.2018 / 03:03
1
answer

Why do I return iQueryable instead of an instance of my class?

I'm getting the following error when returning an object when validating the login:    You can not implicitly convert the type 'System.Linq.IQueryable' 'to' Business.clsUser.ValidSessionU '. An explicit conversion already exists (check if a c...
asked by 14.09.2018 / 15:07