Questions tagged as 'asp.net-mvc'

1
answer

Problem generating list in a ViewModel

I'm working on ASP.Net with MVC 4 , and when doing a search / using filters I'll present a resulting list of data. To better handle this result I created a ViewModel where I put information from several tables. Now to populat...
asked by 14.02.2014 / 10:54
2
answers

Get post data in ASP.Net MVC

I'm using MVC in my application and in Views I'm using various Telerik tools. I need to get some information from a POST that I give to my View . Follow View: <div class="div-grid"> @using (Html.BeginForm("ExecutaExportacao"...
asked by 14.02.2014 / 20:24
2
answers

Load list of one type in a View of another type

I'm doing a professional registration and of course, my View is typed with this Model. However in the register I need to insert Specialization and Type (2 different models). These last 2 models need to come as lists and appear in checkboxes with...
asked by 08.05.2014 / 21:54
1
answer

Action does not execute

I am using STS authentication, and given given configuration in web.config I can not make my action (Sign In) perform as it should. to illustrate follows code: [AllowAnonymous] public class SegurancaController : SecurityControlle...
asked by 07.05.2014 / 16:40
1
answer

Layout does not appear in "_layout.cshtml"

I'm editing the _layout.cshtml file so that it can be replicated on the other pages. However, when I run my program it's like I have not made any changes to the layout. What can it be? By the way, I'm having the error like this:    T...
asked by 26.11.2014 / 20:47
2
answers

Scaffolding ASP.NET giving error

The error is generated using VS 2012. When I try to create the Controller for my News using the Entity framework, I have already tried in several ways. My database you can see on the server explorer on the left. I'm trying to create the contr...
asked by 06.02.2014 / 20:00
0
answers

Ignore property ICollection AutoMapper does not work

Personal I'm having trouble to ignore a property that is like ICollection and another one that is like Generic Class. Type I am ignoring in the Profile Map class Address, it works only when Mapea PersonAddressEditViewModel > Person, when mapp...
asked by 06.12.2018 / 21:29
2
answers

Send list of objects to View, by ViewBag Asp.net

I would like to get some data: Class: public class Produto { public Produto() { this.Categoria = new HashSet<Categoria>().ToList(); } #region Atributos [Key] public int Pr...
asked by 06.11.2018 / 06:12
1
answer

Create DropDownList with ViewBag

I'm getting the following error:    InvalidOperationException: There is no ViewData item of type 'IEnumerable' that has the 'Office' key. Here I look for the database: public IEnumerable<SelectListItem> GetAllOfficeAsync(Guid user...
asked by 01.11.2018 / 14:43
0
answers

Is it possible to simulate a FTP server in C #? [closed]

I need to run automated integration tests in an application whose functionalities have external dependencies such as FTP. I would like to know if it is possible to simulate an FTP as it is possible to simulate a database with Moq, for example....
asked by 16.10.2018 / 19:05