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

2
answers

Site works on localhost, but not on UolHost (permissions?)

I created a default site (from those that already come pre-encoded from visual studio 2013), using asp.net mvc technology with common authentication for individual accounts. In my localhost the site runs that it is a beauty, it registers user...
asked by 23.11.2014 / 18:24
1
answer

How to remove the ReturnUrl querystring?

How to remove the ReturnURL querystring from my Login page?     
asked by 12.11.2014 / 22:25
1
answer

Navigation using @RenderBody

When we use @RenderBody , the remaining pages used with _Layout are only rendered in there, correct? My question is: Assuming all our pages use the _Layout that is this @RenderBody When browsing, does it just load th...
asked by 20.11.2014 / 12:25
1
answer

Problem with select in table with relationship many to many

I have the following scenario: public class Pedido { [Key] public int Id { get; set; } public virtual ICollection<ProdutosPedido> ProdutosPedidos { get; set; } public DateTime CreateDate { get; set;...
asked by 06.11.2014 / 21:27
1
answer

Two models and one controller

Following the reasoning this my other question , where I create two models for manipulations, how could I use a controller to do the manipulations in the tables? My intention in doing this is that in the same view I can make a record of...
asked by 06.11.2014 / 19:29
1
answer

Is it possible to do a basic CRUD in JSON file?

I have the following scenario. I have a news site on ASP.NET MVC that currently accessing it, all the information gets caught in the bank. I want to take these requests from Front. I thought about making a file Data.json and...
asked by 10.10.2014 / 01:43
1
answer

How to pass multiple viewmodel to a single view?

I have my view, it depends on a viewmodel. But in this same view, I add items referring to the main one with a bootstrap modal, and I need another viewmodel for the validations. How do I pass 2 viewsmodels into a single view?     
asked by 30.09.2014 / 15:35
1
answer

Sort component DataTables by Date

I'm using the DataTables compiler where it returns the birthdays for the month. I am ordering on my controller by day, and it works correctly on a regular table. Is there a way to change the dataTable to sort as it receives the controller data...
asked by 23.01.2015 / 12:48
1
answer

Update modal content dynamically

I have a table with up to 10 listed services, and each row has an update button. When you click the refresh button, a modal window opens with the data in this row, as well as a form for change. However, I can not get the controller to return...
asked by 20.09.2014 / 02:07
1
answer

Checklistbox when loaded dynamically does not mount the check's

When it was manual, the check's (check boxes) were all ok. As I now mounted via jquery and controller, it no longer mounts the check's, it stays as a listbox without being able to make selection. See below my code. My jquery: function Preenche...
asked by 26.08.2014 / 18:12