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

1
answer

I can not download a file by ActionLink mvc5

I know the error is in the way I'm interpreting the routine. I have a routine to download a file attached to a table. This file was generated by my application (binary) and now I need to write this binary in any dir, that is, in my table / grid...
asked by 09.11.2015 / 16:55
2
answers

Field only records the date and the part of the time is "zeroed"

I have this piece of code in my view. <div class="form-group"> @*@Html.LabelFor(model => model.DT_AGENDAMENTO, htmlAttributes: new { @class = "control-label col-md-2" })*@ @Html.Label("Data de Agendamento", htm...
asked by 11.11.2015 / 13:25
2
answers

ASP.NET Access Control Edition MVC Bootstrap

Good morning! I have a project created and it already contains an access control system that was created automatically when I created the project, I would like to know if it would be possible to edit this access control or if it would be bett...
asked by 10.12.2015 / 14:20
2
answers

Save data group in Post method

I'm using the BeginCollectionItem to save a list of data in my add method. For this, I created a ViewModel with the main data to the list that I want to save, in the POST method I have ViewModel TypePresitionVenueViewMod...
asked by 23.06.2015 / 14:31
1
answer

Partial is not rendered

According to this link of another question of mine that ended up generating error where I followed the steps referring to another question, I'm having a rather strange error. I created a partial to do the manipulations in the Telephones t...
asked by 03.11.2014 / 21:06
1
answer

Place where methods of CRUD interaction with the bank should be in ASP.NET MVC

I'm using the entity framework and developing a system through ASP.NET MVC5, but I was in doubt about CRUD. The methods of interaction with the bank (Create, Update, Select, Delete) should be inserted in which part of the project? I thought o...
asked by 11.12.2014 / 12:17
1
answer

How to do LogOff with Ajax?

I have my menu, and it has a dropdown <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Usuário</a> <ul class="dropdown-menu" role="menu"> <li><a href="/"&g...
asked by 04.09.2014 / 18:28
1
answer

My view does not starta

This is the Error that gives: Erro de Servidor no Aplicativo '/'. Não é possível encontrar o recurso. Descrição: HTTP 404. O recurso que você está procurando (ou uma de suas dependências) não pôde ser removido, seu nome foi alterado ou está...
asked by 04.08.2014 / 20:10
2
answers

Positioning controls with bootstrap not aligning

I need to do the following: Label on top and control under the labels. I took the example from the twitter bootstrap page itself and it is not working. Below my code: <div id="tabs-1"> <form role="form"><!--A tag ul c...
asked by 25.06.2014 / 19:24
2
answers

InvalidOperationException when using the Set method of the DatabaseContext

When you use the DbContext.Set () method, the following exception is raised:    The entity type is not part of the model for the current   context If I create a DbSet directly in the DatabaseContext, it works. But my current need is to cr...
asked by 25.07.2014 / 21:13