Questions tagged as 'c#'

1
answer

___ ___ erkimt with Lambda List ______ qstntxt ___

I have the classes:

%pre%

Given a %code% , I want to know how many %code% has %code% 2 and %code% 2.

Something like (I know this is not possible):

%pre%     
______ azszpr44907 ___
%pre%     
___

I have the classes: public class Modulo { [Key] public int ModuloID { get; set; } public int SatisfacaoID { get; set; } public virtual Satisfacao Satisfacao { get; set; } public virtual ICollection<AlunoSatisfacao> A...
asked by 23.12.2014 / 05:06
1
answer

Disable a button in ASP.NET MVC

I'm developing an application that manages course enrollments, I'm still apprentice in ASP.NET MVC, and I have the following question: In my course screen there is an "enroll" button for the courses listed on this screen. I would like to know...
asked by 02.06.2015 / 20:26
1
answer

Back to previous view with data filled

I have 3 View's, a main (Index) containing fields to perform filters and a search button, another, GridIndex (rendered within the view Index), where records are demonstrated based on the search filters, and a third Information) that is displayed...
asked by 06.05.2015 / 14:16
1
answer

Print Event Capture

Good afternoon, I would like to know how do I capture the print event using C #. Example: the user clicks on the option to print the application that he is using (Word, Outlook etc ...) and instead of calling a printer would open a form, w...
asked by 22.04.2015 / 00:14
3
answers

Make an UPDATE with the value of another database

My bank is like this: cd_endereco | ds_endereco 1 | Rua joão e maria 2 | Rua Manuel Silva And in the other database, I have the same columns, entertaining cd_cliente . I want to pass the values from this table...
asked by 02.12.2014 / 14:49
1
answer

Validation control ErrorMessage

I have the following model: public class Request : IEntity { public int Id { get; set; } [Required(ErrorMessage = "O Centro de Responsabilidade é obrigatório!")] public string Cadastro_Id { get; set; } public virtual Cadastr...
asked by 02.12.2014 / 18:56
1
answer

Save Request - ASP.NET MVC

I want to make simple ecommerce on my website based on this question: Implementation of Cart Shopping in ASP.NET MVC However, I am in doubt when doing two things: 1st Save the data in the Order table and OrderData, with some data coming fro...
asked by 03.12.2014 / 13:14
1
answer

How do I store values as objects in Web Forms?

How can I store the values in my class? Every time I click the buttons my class seems to be instantiated again. My class: public class Partida { public string[] linha1 = new string[3]; public string[] linha2 = new string[3];...
asked by 30.11.2014 / 23:02
1
answer

Code First One to Many May be null

My scenery: public class AlunoAvaliacao { public int AlunoAvaliacaoID { get; set; } public DateTime Inicio { get; set; } public DateTime? Fim { get; set; } public virtual int AvaliacaoID { get; set; }...
asked by 06.12.2014 / 17:01
1
answer

Design pattern or best practices for dealing with files on virtual disk

Is there a standard or best practices for handling shipping, storage, file publishing, and access control? Environment example: I have a system that will need to have a registration for Calls and News and both need to allow insertion of at...
asked by 26.11.2014 / 02:47