Questions tagged as 'asp.net-mvc'

2
answers

SESSION: System confuses users who access it simultaneously

When 2 users access the system at the same time, it somehow confuses users, not just the name, but their permissions too ... I'm assigning the session after logging in to ActionFilter public class UsuarioAttribute : ActionFilterAttribute p...
asked by 04.02.2016 / 13:32
2
answers

How to use MeasureString method?

I have the following code: var font = new Font("Arial", 50); var texto = "Meu texto"; var res = Graphics.MeasureString(texto, font); // Está linha não funciona. When compiling the following error is generated:    An object reference is...
asked by 10.11.2015 / 18:14
1
answer

How to write data in a one-to-many table?

I have a question that still persists after doing some searches. It is as follows, assuming I have a form, where I register multiple emails for a single user, how do I record these multiple emails in their table? Here are the examples: (if y...
asked by 10.11.2015 / 13:35
1
answer

Transparent image and background color

I have the following code: FileStream fs = new FileStream(@"\path\imagem1.png", FileMode.Open, FileAccess.Read); Image image = Image.FromStream(fs); fs.Close(); Bitmap b = new Bitmap(image); Graphics graphics = Graphics.FromImage(b); graphic...
asked by 10.11.2015 / 19:05
1
answer

Allow to enter inside a DropDownlist and execute the pesky

I have DroDownList that lists names of Patients. I need to allow the user to enter the Patient "Name" directly inside the DropDownList and when entering the Patient Name the system will execute the search. HTML <p><button...
asked by 15.01.2016 / 18:28
1
answer

problem with dynamic proxies ASP .NET MVC

Could anyone explain to me a method for not getting the proxies from DbContext but the actual objects? Here's a case: public ActionResult PegarItem(int anuncio, String remetente, int destinatario) { var context = new ReuseContext();...
asked by 12.11.2015 / 23:33
1
answer

Synchronous XMLHttpRequest and XMLHttpRequest.withCredentials

When I load my page, these 2 messages appear. [email protected]@{ViewBag.Title="Adicionar novo item"; Layout = "~/Views/Shared/MasterPageCadastro.cshtml"; @* ----- Boostrap ----- *@ <link href...
asked by 11.11.2015 / 20:04
1
answer

how to do a select count using Linq C #

I need to convert this snippet of SQL code to Linq C #. I've been able to convert almost all of the code. SELECT COUNT(Q.ID_QUALIFICACAO) AS CONHEC_ESPECIFICO FROM QUALIFICACAO Q INNER JOIN...
asked by 02.11.2015 / 20:39
1
answer

How to implement PKCS # 7 (components-class, library, dll, plugins and others) in an MVC5 web application

I'm trying to implement PKCS#7 in an application web mvc5 I've found some solutions for desktop application, I've never added desktop solutions (class, dll, reference etc) in a web application, Has anyone worked or knows h...
asked by 16.10.2015 / 20:05
1
answer

Select two attributes from two different tables in a view

I have the model (superclass) Pessoa and the model Aluno public partial class Pessoa { public Pessoa() { this.Escola = new HashSet<Escola>(); } [Key] public int PessoaID { get; set; }...
asked by 24.08.2015 / 17:25