Questions tagged as 'asp.net-mvc-5'

2
answers

Turn bank information into Link

I'm doing a website which has a string from the database but I want this string to be informed as follows, instead a button will appear that the user will click and this button will open the url that is the text that is ta in the string that is...
asked by 26.06.2018 / 14:02
1
answer

VallidationSummary shows no error on the screen

I am using ValidationSummary in forms, but they are not being rendered. Is there any known reason for this error? Example form: @using (Html.BeginForm("CadastrarPessoaFisica", "Usuario", FormMethod.Post)) { @Html.ValidationSummary(false...
asked by 07.09.2014 / 22:32
1
answer

Jquery validate does not validate correctly

I'm using jquery validate and unobtrusive for validation in an asp.net mvc 5 project When I needed to move decimal numbers, I found this Link where it has the validations and etc. But I have the following problem: If I leave my Bundle...
asked by 18.09.2014 / 21:52
1
answer

EntityFramework 6 - Load Model and its Dependencies on Home

I have a college project in which I decided to do a blog . Something very simple, author, post and comments. only these three. Well First I wanted the home of the project to load the Blog Posts . I got it. Now I want below each post to giv...
asked by 15.05.2014 / 20:32
1
answer

Hide URL parameters with routes and mvc 5

I have a route like this: routes.MapRoute( name: "RotaConteudo", url: "Conteudo/{name}/{Parametro}/{tipo}", defaults: new { controller = "Conteudo", action = "Conteudo", name = "", Parametro = "", tipo = "" } ); When the page...
asked by 21.03.2014 / 16:03
1
answer

Ajax request does not work - success does not work

I've done the following function: $("#CategoryList").change(function () { $("#SubCategoryDropDown").empty(); $.ajax({ dataType: "json", url: '@Url.Action("GetSubCategory", "ProjectSubCategories")', type: 'POST', data: { id: $(...
asked by 19.08.2017 / 23:07
1
answer

Redirect to error page when entering catch

I'm having a question about a possible improvement in the method when an error occurs in a Action and redirects to an error page. I currently do this in Action : public ActionResult Index() { try {...
asked by 11.06.2016 / 15:49
1
answer

Prealoder when requesting dowload

I'm doing a return of a pdf from a Custom ActionResult response.ContentType = "application/pdf"; response.AddHeader("Content-Disposition", "attachment; filename=teste.pdf"); And I would like to know how I could make a preloader...
asked by 16.09.2015 / 19:20
2
answers

Hibrid Web Application (MVC and Web API)

In Visual Studio when we create a web project it gives you the options to dial: WebForms MVC Web API When the MVC + Web API framework both are in the same project. Is there any advantage / performance in using MVC + Web API in the same...
asked by 08.10.2015 / 21:32
1
answer

How to use multiple classes as User in Identity - Asp.Net Identity

I want to use 2 classes as User in Identity and I could not see this change in the code. Let's assume that I will use the default class "ApplicationUser" which generates an "AspNetUsers" table and I want to use another "Customers" table that...
asked by 09.02.2015 / 20:11