Questions tagged as 'asp.net-mvc'

2
answers

Handle 404 error without using try / catch

I have the following code snippet that does an HTTP request , but sometimes the URL does not work, then an exception will be thrown by the framework . > HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = WebRequ...
asked by 30.08.2016 / 14:06
2
answers

View control in Partial View conditionally

I need a Partial View control to be displayed according to a condition. For some views a button would appear for others not and this would be set via a parameter in the Partial View call. After searching I saw that I can use ViewDataD...
asked by 09.04.2015 / 04:04
1
answer

How to upload file at the same time as submitting an asp.net mvc form 5

I already have a form that does a registration, I want to add an additional field in it where the user will upload a photo, I want to do everything in the same submit. My VM VMdomainCreate VM: public class VMDominioCreate {...
asked by 02.11.2015 / 22:58
1
answer

Getting objects with JQuery and sending via Ajax to MVC C #

I'm trying to understand how to get HTML objects to an MVC C # controller. I know the code below works if the controller has string[] teste . <input type="hidden" name="teste"> <input type="hidden" name="teste" value="testes"&g...
asked by 25.08.2014 / 20:21
2
answers

Getting attributes of an object using jQuery

How do I get the attributes of an object that is returned by an action in the javascript ? This is my code ajax . Pass the id to the action and it returns an object. I would like to access the values of this object. function UpdateDa...
asked by 30.06.2015 / 16:48
1
answer

Application Layer

Based on this question and this other question , in an environment that uses Entity Framework and Asp.net MVC . I see in many examples not using the application layer, a use of the data layer ( Entity Framework ) in Co...
asked by 05.09.2014 / 21:29
1
answer

Page in aspx running on asp net mvc

Good afternoon, I have a page in aspx that, through some components, can generate several documents used in the company. Well, the page is in aspx and it uses proprietary components (DLLs), so I can not reverse engineer them, and since the site...
asked by 27.07.2014 / 22:18
2
answers

Multi Language ASP.NET MVC

I have an ASP.NET MVC application. And you need to make it multi-language, using a database. I thought of two approaches: Livro Titulo Subtitulo Idioma OR Livro Titulo TituloEN Subtitulo SubtituloE...
asked by 23.07.2014 / 14:55
1
answer

Multiple Bank Login Control

Well, I have my application and every client will have their own database. As each client will have its database, it will also have its user table for login. So I have BancoEmpresa1 - User / Password: [email protected]/123 BancoEmpresa2...
asked by 21.03.2014 / 15:07
1
answer

How to clear form data after saving to the database? via Ajax .net mvc

After you save an object in the database, the view continues to show the fields filled in! <fieldset> <legend>Endereco:</legend> @Html.ValidationSummary() @Html.HiddenFor(e => e.CodigoPessoa, new { id = "Pessoa",...
asked by 23.02.2015 / 14:39