Questions tagged as 'c#'

2
answers

MVC - Is it possible to place an EditorFor inside a column in Webgrid?

I have a EditorTamplate and I need to put a EditorFor , using this EditorTemplate , as a column inside Webgrid . How could I do this? I tested the form below and gave the error shown in the image.     
asked by 16.09.2015 / 22:35
1
answer

Error: Object reference not set to an instance of an object

I'm having the following error:    Object reference not set to an instance of an object Can anyone identify the error in my code? Follow my classes : Program : class Program { static void Main(string[] args) { u...
asked by 08.09.2015 / 22:54
2
answers

I need a code that gives the error AccessViolationException

My teacher has passed a series of exercises and in them I need to create a code to give the error AccessViolationException . But I am not able to create a code that from this error (I do not want to do the error handling). I need someth...
asked by 19.09.2015 / 20:03
2
answers

I can not connect the localDB with visual studio

I'm trying to use the entity framework in Visual Studio, but when I try to run the program it generates the error: System.Data.SqlClient.SqlException was unhandled Class=20 ErrorCode=-2146232060 HResult=-2146232060 LineNumber=0 Me...
asked by 16.11.2015 / 18:50
2
answers

Can an exception cause the closing of a SqlConnection?

I am building the connection treatment and this question came to mind, even though I could not find a satisfactory answer. So I came here to ask the most experienced programmers. Is there any possibility that when a exception is thrown a...
asked by 06.01.2016 / 17:06
2
answers

Get partial name of a process

Is there any way I can get a process that is running by a partial name, like what happens with like in a SQL search? Why I ask this: I have a team viewer custom here for the company. The problem is that if I happen to h...
asked by 07.01.2016 / 20:40
3
answers

LINQ Anonimous Type as parameter

I am trying to create a method that receives an anonymous type (see LINQ) (Please correct me if the term tipo anônimo (anonymous types) is incorrect) MinhaLista (produtos.Select(p => new {p.Id, p.Estoque}) I asked Visual...
asked by 06.01.2016 / 02:14
1
answer

Is there any free algorithm to check for C # syntax?

I am creating a small text editor that has C # code. Is there any way from within the program itself, regardless, to check if the syntax is correct? Note: I'm not using C # to do the text editor. I'm just after a syntax algorithm. It can be i...
asked by 24.12.2015 / 15:09
1
answer

Ticket Generation [closed]

Hello, I need to generate tickets in an application. I've never worked with ticket generation. Could someone explain to me where to start, what are the first steps, the path of the stones? I did a search and saw that there is a Boleto .Net...
asked by 30.10.2015 / 14:28