Questions tagged as 'asp.net-mvc'

1
answer

Problems sending e-mail asp.net.mvc

Does the SMTP server require a secure connection, or was the client not authenticated? [HttpPost] public ActionResult Index(string login) { try { var tbuscar = new UsuarioAplicacao(); var retorno = tbuscar.ListarPorLogi...
asked by 29.12.2015 / 21:12
1
answer

problem with jQuery ajax

I'm having a problem using google charts, where it works perfectly in Internet Explorer, but when I run the same page in google chrome or firefox, the graphics are not displayed My action [OutputCache(Location = OutputCacheLocation.None)]...
asked by 15.09.2015 / 19:29
1
answer

Child actions are not allowed to perform redirect actions. MVC 5

On my homepage, there is a shortcut button that opens a modal, and within that modal it has a partialView that points to an action within another controller . Until then calm down. <div class="modal fade" id="modalCreate" tabindex="-1"...
asked by 03.08.2015 / 17:44
1
answer

Finding Data with jQuery

If anyone can help me: I'm doing an ASP.NET MVC system of academic control. At the time of enrollment, I wanted to put a blank field to enter the CPF, and other fields as the name, but only for presentation, and get the id to effect the enrol...
asked by 05.08.2015 / 21:26
1
answer

Error after setting up authorization in Web.config

I'm having trouble accessing the MVC application shortly after making the configuration in Web.config to do the authentication with the windows user. The error occurs when you enable the following line: <authentication mode="Windows" />...
asked by 31.08.2015 / 21:59
1
answer

Repository Pattern - Doubt of use

Good night, guys. I was developing software and started thinking about how best to implement Repository Pattern. I have to return to the data controller of cities and states, so I have two models in my application. public class Estado...
asked by 09.09.2015 / 04:13
1
answer

ASP.NET MVC and DDD

I'm trying to use DDD and Fluent Api in a test application. I had the following question: I have a product registration (in this case ink), when adding a new product I put dropdownlist's, to force the correct and standardized registration, ex...
asked by 20.08.2015 / 18:40
2
answers

Sort by join field with linq in MySql (C #, MVC)

I have the following query: query = from p in db.pessoa join f in db.pessoa_origem on p.Pessoa_Origem_Id equals f.Id join s in db.pessoa_status on p.Pessoa_Status_Id equals s.Id join c in db.contato on p.Id equals c.Pes...
asked by 24.07.2015 / 22:54
1
answer

Pagination in the modal using Url.Action

I have a modal of products, in the controller of the page has a get function to complete it when it opens, and a post for filters and pagination. My problem that pagination is done by Url.Action("Index", new { page }) that calls the pag...
asked by 05.10.2015 / 21:53
1
answer

Error listing Data via Json [duplicate]

I am using a method to return an object of type JSON but it is not listing the information: My Controller public ActionResult GetDados() { int codigoVenda = 2; try { SistemaDBEntities db =...
asked by 13.10.2015 / 22:01