Questions tagged as 'asp.net-mvc'

1
answer

How to use multiple models in a view

I am doing an individual registration and I have the following models: Pessoa Fisica Juridica In my view code, I only have the declaration of a model : @model CodeFirst.Models.Fisica The problem is that whe...
asked by 23.11.2015 / 11:59
4
answers

Resize image

Well my system has an area where the user registers information about the site. So register images. The system does not restrict the size of the image. Then the site shows the images. But there are different parts on the site that carry diffe...
asked by 21.07.2014 / 14:12
1
answer

Returning with Ajax BeginForm

I have my Form with the following statement: @using (Ajax.BeginForm("Novo","Cliente", new AjaxOptions { OnSuccess = "OnSuccess", OnFailure = "OnFailure" })) { } My functions in js: function OnSuccess(response) { ale...
asked by 03.10.2014 / 19:14
3
answers

How to put my ASP.NET website online

I'm trying to put my ASP.NET application in the air, and I've never had contact with it, do I need to turn my .CSHTML into .HTML? Or something like that?     
asked by 17.10.2014 / 05:07
3
answers

How to do an ASP NET MVC dropdown

I have a DTO Class [Serializable] public class PerfilDTO { public int Codigo { get; set; } public string Descricao { get; set; } public SituacaoEnum Situacao { get; set; } public List<PerfilFuncionali...
asked by 15.05.2014 / 21:53
2
answers

Which pattern is used to validate business rule?

I use repository patterns for search, save, and delete I would like to know where the validation of my business is best ... For example: I need to check that item is in contrato of prestador , and invoice it with the...
asked by 12.06.2014 / 14:51
3
answers

Use ajax with ActionLink

I want to change the ActionLink and URL to work with Ajax , but I do not know how to do that. Follow my code with ActionLink and URL . <ul class="nav" id="side-menu"> <li> <a href="...
asked by 12.06.2014 / 14:57
1
answer

What are the risks of placing an ASP.NET application in a Load Balancing environment?

Regarding the code ... is there any risk that might affect my application from the moment it works in a Load Balancing scenario?     
asked by 12.06.2015 / 22:04
2
answers

Keep data between sessions

I have an ASP.Net MVC project where I generate a report that requires a lot of the machine's processing feature. I have a Action that generates and another that returns the report data in an Object List, so I thought that by creating a...
asked by 13.09.2015 / 14:58
1
answer

Authorization in Asp.Net MVC

I'll try to be clear. In most instances of authentication and authorization of access in ASP.NET MVC, I see that the authorization control is usually done in Controller , with the decoration of the class itself inherited from Control...
asked by 24.11.2015 / 19:16