Questions tagged as 'asp.net-mvc'

3
answers

C # hangfire stopping

I'm using hangfire with IIS in an ASP.NET MVC application with C #. I have a Task running every 5 minutes, however the application is stopping. This occurs in a variable period of time, sometimes it runs for 3 hours and sometimes for less tim...
asked by 15.07.2016 / 15:04
1
answer

Is it possible to show more than 1 information field in @Html.DropDownListFor?

I would like to show more than 1 description No controlle //lista var tbuscar = new TituloPosAplicacao(); var listar = tbuscar.ListarTodos(); ViewBag.TituloPos = new SelectList(listar, "IDTITULOPOSS", "DESCRICAO", "MODALIDADE"); Na View <...
asked by 02.08.2016 / 02:49
1
answer

How to use areas only using the root controller

I created an ASP.NET MVC 5 project where I had made a template , so now we will have several templates divided by areas . But the controllers will be the same, so I did not want to create the same controllers for all areas . How do I do...
asked by 27.08.2016 / 04:08
2
answers

How to pass an IEnumerable Model to a Controller?

I have a page that correctly lists my records. But I have Html.BeginForm for each line, @model IEnumerable<Generico.Dominio.TB_POSSIBILIDADE> @{ ViewBag.Title = ""; } @if (Model.Count() > 0)...
asked by 28.07.2016 / 18:20
1
answer

Images do not appear on the website published on the web server

Good afternoon guys, I have published a website on the WEB server, but no image is being displayed in the browser. All images are displayed as follows: <img src="~/imagens/logo.png" Location displays normally. But not on the server. I...
asked by 29.07.2016 / 22:38
1
answer

Error updating template through database [closed]

Hello, deletei in sql server a table, in visual studio 2015 I updated the "update model from database" option, updated my change. But when saving EDMX all the entities (tables) of the EDMX disappeared, as if it had deleted all of them. In Tea...
asked by 20.07.2016 / 14:50
1
answer

How to configure an Authentication and Authorization Server?

How to set up an authentication and authorization server like Google by Cookie, and then be able to make it available to ASP.NET MVC applications from the same group of web applications with the same user base? I've been trying to understand...
asked by 15.08.2016 / 16:34
1
answer

Popular table with fluent api

I have this Many to Many template and I need to popular the table through the Seed file as described at the end of the post using api fluent / p> Contextfile:publicEfDbContext():base("EfDbContext") { } public DbSet<TBUsuario&...
asked by 22.06.2016 / 00:22
1
answer

Doubts with angular and checkbox

I have a form with some inputs and some checkbox, when I do the search the bank is returned Json , and the input fields are filled in because the checkboxes are not checked even though I have declared ng-model of it: <p> <input...
asked by 17.06.2016 / 12:52
1
answer

How to do action edit with view model?

I am trying to do in my project the editing part of the data that have been registered. Well, the data registration part is working fine, but now I need to edit this data. Before, I've been looking around the web to see what I could find out abo...
asked by 07.06.2016 / 04:49