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

1
answer

Coordinate in map MVC [closed]

I need to show a map to the user and let them choose a location. After choosing the location I need to return the GPS coordinates (Latitude, Longitude) for the action. What is the best way to do this? Note: It can be using javascript, j...
asked by 14.07.2016 / 01:02
1
answer

Save data loaded from a partialView

I have PartialView with BeginCollection where I load a list of products in Dropdowns dynamic: InthisprojectIhaveaManyToManyrelationbetweenProductandVendorwhereIhavetheProdutosFornecedoresentity.IwouldliketosavetheSupplie...
asked by 22.06.2016 / 21:33
1
answer

How to use 4 model in a view

Hello, I have 4 class Cliente , Locacao , Item and Cacamba : public class Cliente { public Guid ClienteID { get; set; } public string Nome { get; set; } ............... } public class Locacao { public Guid L...
asked by 13.06.2016 / 10:55
1
answer

How to put a form in the _Layout view?

I'm trying to make a website with two languages support. First test I did was put this code inside a view common, the index of my control Home . It worked perfectly. When I put the same code in a partial view...
asked by 28.10.2015 / 18:19
2
answers

Get the client ID of a selected row from the DataTable

How do I get the client ID of a DataTable and this column is hidden? When I click on the DataTable line I will need this ID to display in another View with Customer details. I have the following code @model IEnumerable<Do...
asked by 16.09.2015 / 14:35
1
answer

Show "Wait ..." message while the page loads completely - jQuery MVC

I have a view that loads a DataTable.Net , where I need to display a PopUp with the message " Aguarde... " . PopUp opens when the page loads, but how do I close it? The way I did, PopUp does not close, what's wrong? Is there any...
asked by 17.10.2015 / 14:46
1
answer

Asp.NET MVC bind checkbox list with string value

I have a list of checkboxes and I need to bind values that are strings (@ item.SelectedValue) with my IEnumerable>. <div class="editor-field perfil-filtro-expander-todasAcoes"> <div class="metro perfil-filtro-expander-overflo...
asked by 21.08.2015 / 17:17
2
answers

Dropdownlist Menu ASP.NET MVC 5

I need to change the menu to apply a Dropdownlist, but I'm having difficulty. I'm following the steps of the bootstrap site, but when you click the submenu does not appear, follow the code below: <body> <div class="navbar navbar-inver...
asked by 24.09.2015 / 21:30
2
answers

How to return to the previous page by the HandleErrorAttribute?

I'm trying to implement a global filter for error handling and started testing as follows: public class MyHandleErrorAttribute : HandleErrorAttribute { public override void OnException(ExceptionContext filterContext) { var exce...
asked by 24.09.2015 / 15:57
1
answer

View within an area as default in MVC

How can I make a view that is within an area default when I run the application? Error that I'm getting: Mystructure: MyRouteConfigfile  WhatIdidbelowdidnotwork.namespaceWebApplication1{publicclassRouteConfig{publicstaticvoidRegisterRoute...
asked by 09.05.2016 / 16:02