Questions tagged as 'asp.net-mvc'

1
answer

Alert / pop up message in ASP.Net MVC

How to create alert or pop up to have the same effect as MessageBox in a web application? My code [HttpPost] public ActionResult NovaSolicitacao(Solicitacao pedidoSolicitacao) { pedidoSolicitacao.Usuario_Id = GetUser(); if (...
asked by 25.09.2014 / 16:48
2
answers

How to save and retrieve all Sessions of a user

I'm developing a system in which I need to recover all users logged in or logged on to the server. Context: When the user logs in to the system, in addition to creating the session , I save the information with the logon date and session tim...
asked by 28.10.2014 / 19:34
1
answer

Change Values in Modal - C # MVC JavaScript

I have the following javascript code in my project that takes attribute values when the user clicks the rename class button and calls a modal: <script type="text/javascript"> $('.rename').on('click', function () { var $this =...
asked by 05.04.2017 / 10:13
1
answer

Pass a list of View objects to the Controller

I have a Client class and an address, and a client can have many addresses. I'm trying to create a View Client where I can add as many clients as I want, and then add those addresses to the Client. But it does not return the address list when I...
asked by 30.04.2015 / 17:05
1
answer

How to tinker with code in a DLL?

The bar code is being generated through a class from a DLL downloaded from the internet. I need to change this barcode, but this class is blocked. How can I play a game?     
asked by 05.08.2015 / 22:50
2
answers

When submitting Form the attachment is coming null. ASP.NET

When submitting the form, everything in the controller arrives completed, minus the file that is attached. Where is the error? Controller: public ActionResult EnviaEmail(string destinatario, string assunto, string mensagem, FileStream arqu...
asked by 25.06.2018 / 13:58
2
answers

Alternative to Session

I am using Session to store the company object that the user is logged in. I also use to make filters, so he can only see what is the company's login. However, I have the following problems: 1 - If the user has closed the tab, his authe...
asked by 26.11.2014 / 12:40
2
answers

Lambda expression to return a Person in the repository - DDD and Aspnet.Core [duplicate]

I have a Person table that has one-to-one relationship with tables PessoaFisica and PessoaJuridica .    WhenIpasstheid,ithastocheckmewhetherthenatureisphysicalorlegalandbringmetheperson+pessoafisicaorpessoajuridica(Thepersonca...
asked by 27.02.2018 / 00:12
1
answer

Do not update a certain EF field asp.net mvc

I have a table that every time I create a new register has the field Datacadastro, but when I want to edit I do not want to change the date that was registered and only changes the other fields. I already tried to do it in a way by logic works b...
asked by 09.02.2018 / 21:35
1
answer

C # MVC5 EF - How not to lose data after ModelState validation?

Below is my question if you can help. I use C # ASP.NET MVC 5 with Entity Framework. I have classes that represent below respectively a customer registry and an e-mail registry: public partial class Cliente { [Key] public int Client...
asked by 25.09.2017 / 17:19