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

0
answers

How to simulate a background action to solve inactivity problem?

I have a site in ASP.NET MVC5 in company "VaiPapai" (no merchandising here, right), this hosting is shared and I can not decide the downtime for the session to fall, in the case as default they put 6 minutes. This is currently a problem as I can...
asked by 02.03.2018 / 21:36
0
answers

Associate an entity with IdentityUser

Gentlemen, I have a category class, which must be entered by registered users. My relationship idea is 1 user can have multiple categories. I have my projects separated but related to each other according to the image below I tried t...
asked by 13.02.2018 / 18:56
0
answers

MVC + EF + daughter entity in the same edit form

I have 2 entities, one being "daughter" of the other and I need both of them to be updated in the same form. For example: public class EntidadeMae { public int Id { get; set; } public string Nome { get; set; } public IEnumerable...
asked by 07.02.2018 / 20:33
1
answer

MVC5 + Entity Framework + Form + Modal

I have an application where there is a central entity and several other auxiliary registers, such as Status, Format, Type, etc. All these auxiliary entities have only 2 fields: Name and Status (Boolean, informing if it is active or not). Since t...
asked by 05.02.2018 / 22:57
0
answers

return / pdf download from backend to ajax

I am converting an html to pdf, I was able to generate in the backend the pdf with submit, but with ajax I can not download the pdf .. How can I handle in ajax to download? Code: [HttpPost] [ValidateInput(false)] public ActionResult...
asked by 06.02.2018 / 16:53
0
answers

I am trying to make Scaffold in visual studio with MVC 5 but it is giving the following error

I'm trying and gives the following error The error is this There was an error running the selected code generator: 'Unable to retrieve metadata for' iceguara.Models.Member ''. Using the same DbCompileModel to create contexts against diffe...
asked by 06.02.2018 / 16:29
0
answers

How do I dynamically load Calendar generated by DataAnnotation in Edit with existing data?

My class with the declaration of the "DateNascimento" field, which when filled should load the datepicker generated by DataAnnotation when called in view edit. public class Cliente { [Key] public int ClienteId { ge...
asked by 27.01.2018 / 21:10
1
answer

Cordova error while executing Ajax call

I have a Cordova 7.0.1 application that makes a request to a method from an Asp.Net MVC Web API 4.6 site. When the call is made on the device, cordova run andoid , the method execution returns error. IfyourunthebrowserdirectcallthroughanHTMLpa...
asked by 22.01.2018 / 22:22
1
answer

Two foreign keys in the same column EF

I'm having a question, I'm programming with .NET MVC using the Entity Framework. I currently have: class Produto { public int ProdutoId { get; set; } public string Nome { get; set; } public string Descricao { get; set; } publi...
asked by 10.01.2018 / 17:53
0
answers

Problem with pagination in asp mvc

I'm having trouble showing one question at a time, I could not find an example of jquery with asp mvc for this problem. This is my View where I show the data to the user, but with Foreach it takes all the data but I wanted to know how do I sh...
asked by 14.01.2018 / 20:28