Questions tagged as 'c#'

1
answer

Install application made in Visual Studio on client machine

I created my first Windows Forms application and will install it on the client machine. How should I proceed? Is it just the .exe and the database?     
asked by 30.12.2016 / 14:16
2
answers

Terminate a process programmatically

I want to make a program that presents a Task Manager to the user. I already have the remaining logic, but how can I end a process ( task kill ) with C# ?     
asked by 22.04.2015 / 20:56
2
answers

Save user and password without using database

I'm developing an application with% of type Console , and I'm trying to save some confidential settings like username, password and IP. The problem is, how to store this data securely locally without the use of a database anywhere. For examp...
asked by 13.05.2015 / 20:54
1
answer

DataAnnotation validating property with Javascript plugin. ASP.NET MVC

I need to validate a field in my model that has a text editor in Javascript . So far so good, because the problem only occurs in the registry that I do not get in the Action parameter "Create" an object, but a FormCollection . In the...
asked by 16.07.2014 / 05:41
1
answer

Helper to write HtmlHelpers

I'm trying to write an HtmlHelper and seeing some basic examples I found one with the class TagBuilder already help : namespace MyNamespace { public static class MyHeleprs { public static MvcHtmlString Image(t...
asked by 02.07.2014 / 22:55
2
answers

Login using Entity with password encrypted as varbinary

I have encrypted the user's password and in the Password field of my table I went from Varchar to Varbinary, in the web part of my system everything is fine only in the windows part I am using Entity and I do not know how to do it validate the u...
asked by 01.07.2014 / 21:18
1
answer

Group by with linq

I have the following tables: **Aula** Id Nome Data **Avaliacao** Aula_Id Aluno_Id Organizacao Didatica To get a join of the tables I use the code: var result = from a in mdc.SBE_AA_Aulas join av in mdc.SBE_AA_AvaliacaoAlunos...
asked by 04.06.2014 / 19:33
1
answer

Join with three or more tables with lambda

I made this expression using Lambda and 2 tables. var resultado = db.T_TarefaParceiro.Join( db.T_OsParceiro, t1 => t1.IDTarefaParceiro, t2 => t2.IDTarefaParceiro, (t1, t2) =...
asked by 30.05.2014 / 01:13
2
answers

How to optimize a Gif's color palette?

I have a method that generates images through an array of bytes that I get in the database. The generated files are between 15 and 130 kb in the gif format, they were bigger but it diminishes the dimensions a little. But I need all files t...
asked by 13.06.2014 / 16:37
1
answer

Render pages within _Layout.cshtml of other types. Asp.Net MVC 4

I'm basically developing a kind of social network, however I'm having some problems rendering pages within my _Layout.cshtml page. Html <ul class="dropdown-menu"> <li class="header">Você tem @pUser.RequestsToAccept.Co...
asked by 21.05.2014 / 22:11