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

1
answer

DataAnnotations for checking between Start Time and End Time

I have two fields of type [DataType (DataType.Time)], being the Start Date and End Date, and I can not let the user enter the Final Date smaller than the Start Date for the purpose of calculating hours worked. p> How do I compare two time fiel...
asked by 23.12.2016 / 18:09
2
answers

Convert and save photo in BD

I'm working on a project where I have to save some photos. So I'm looking at the best way to accomplish the task. I thought of saving to the database, because these photos will be accessed both locally (WinForms application) and via internet...
asked by 08.05.2017 / 00:38
1
answer

What is Bind (Include="Property") used for?

When we create a CRUD with scalfold in ASP.NET MVC, in the POST methods, we have the following code: public ActionResult Create([Bind(Include = "Id,Nome")] Grupo grupo) {...} What is this [Bind] used for? When we use Gru...
asked by 29.12.2014 / 23:31
2
answers

Rendering Partials in ASP.NET MVC

I'm having a problem in my application where I wanted to use partial to render one page inside another. That is, one controller inside another. But what happens is the partial does not render at all and I've done almost everything, but it does n...
asked by 15.05.2014 / 15:26
1
answer

What is "Helper" in Asp.Net MVC? [duplicate]

Please explain to serve Helper in Asp.Net MVC. I see many examples that contain Helper . I have no idea what Helper is. And how to create Helper?     
asked by 03.05.2017 / 05:07
1
answer

Many to Many relationship problem in the Entity Framework

I have the following situation: To perform an authentication, I am using the old method for a small application, for assigning levels (roles), as many examples that have the web apart. I use EF and Postgres to access / write data and the Flue...
asked by 26.11.2015 / 17:52
1
answer

What can cause EF performance to fall in this scenario?

I've been doing a data import for a project in ASP.NET MVC 5 with EF 6.1 and SQL Server 2008 where the source Import data was a txt file. The file record lines were not very large but contained a certain amount of information to proce...
asked by 20.06.2014 / 03:11
2
answers

ASP NET MVC Include Url Parameter on all pages

I have an ASP NET MVC application that is multi-client and multi-user, that is, it is prepared to be used by multiple clients and each client can have multiple users. Initially, the login form has the text entry for the client code. However I...
asked by 03.03.2015 / 18:27
2
answers

How to create a View for this Model case?

I've been trying to work around this issue (#) into a problem I'm having but I'm not getting a positive result. I'm getting an array with on's variants instead of getting an array with id's , as I imagined it to be. I have the following...
asked by 23.03.2014 / 16:22
1
answer

How to solve the medium trust problem in asp.net

I'm developing a website in Asp.Net MVC5. When I publish the site in LocaWeb and try to login with my user I received the message: Attempt by security transparent method 'Microsoft.AspNet.Identity.ClaimsIdentityFactory'2+<CreateAsync>d__...
asked by 30.05.2014 / 03:38