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

1
answer

Form using BeginCollectionItem gets null viewModel in foreach

I want to make a form where I can register multiple addresses and phones for a single person, and I want to be able to do this when I am registering the person. Based on the answers to my other question , I came to the part where I put te...
asked by 13.08.2015 / 19:41
1
answer

How to use Reflection [duplicate]

How and why to use Reflection? Is it practical in day to day use? Does your use offer any gain for the system itself?     
asked by 10.06.2014 / 18:47
1
answer

Model with dynamic type properties

I have a select in the database that loads several items and loads everything into one model. The point is that one of the items, depending on how the select is done, is brought up with different type. Ex: The property in the model: public...
asked by 18.06.2014 / 19:18
3
answers

Error generating PDF with RotativaW7

Well, I'm having a problem here to generate a pdf with the data coming from the bank. My system has a student register and its occurrences. What I wanted is that, when detailing the data, I could print these data on the screen (the data of the s...
asked by 05.06.2014 / 23:45
1
answer

Using JQuery DataTables with ASP.NET MVC 5

I have questions about how to use DataTables with the MVC 5 and submit button by returning a Json as per the site: DataTables $(document).ready(function() { $('#example').dataTable( { "processing": true, "serverSide": true, "ajax...
asked by 14.11.2014 / 02:49
1
answer

The name 'Component' does not exist in the current context

I'm trying to create a view component to reuse on pages, I'm trying to follow some video tutorials. I have already installed via nuget the entire Microsoft.AspNetCore.Mvc, but when I try to call it from the viewpage, using @Component.InvokeAsy...
asked by 06.06.2018 / 16:57
1
answer

Is it possible to insert parameters in the filters attributes?

I use ASP.NET and to do access control by level, I use a filter that checks the user's permission level and allows access to view . [HttpPost] [AutorizacaoFilterAttribute] //Esse filtro analisa a permissão do usuário public ActionResult GetEm...
asked by 08.05.2018 / 17:17
1
answer

Error Customizing MVC5 Routes

The error occurs in the RegisterRoutes method in RouteConfig.cs on the routes.MapMvcAttributeRoutes(); When running in the browser: * The built-in constraint of type 'DefaultInlineConstraintResolver' could not resolve the follow...
asked by 18.01.2018 / 21:55
2
answers

List table with ASP.NET MVC condition

I am studying ASP.NET MVC5, so I made a Model called 'ReportTagModels' containing: public class RelatorioTagModels { [Key] public int TagID { get; set; } [Required] public string Tag { get; set; } [Required] p...
asked by 18.02.2017 / 00:59
1
answer

Get logged-in user from windows to automatically authenticate to a site published in IIS 7.5

I'm creating a web application with ASP.NET MVC 5, where when a network user accesses the address of my application via the browser, the systems already automatically pick up which user is trying to login to the application. I currently have to...
asked by 23.11.2016 / 14:50