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

1
answer

ASP.Net MVC application with Jquery Bootgrid does not load data

I created a very simple application (client registry) using ASP.Net MVC 5 + Entityframework 6 (codefirst) + MySql database. Using the JQuery Bootgrid component for data manipulation as the main component. It happens that locally applicati...
asked by 04.07.2017 / 14:46
2
answers

Function with jQuery writing to two tables does not persist in BD

My need is this: I write to a table, get the generated ID and write to the second table with that ID. As the order is to do this in jQuery, a function has been made (by a colleague). But unfortunately I can not write. Notice that there are tw...
asked by 17.03.2014 / 12:48
2
answers

I need to make a filter with linq on an entity, this filter should bring all the events for the next 90 days. Today's example: 11/01/2017 until 04/11/2017 (90 days) _con.SiteContexto.AsNoTracking() .Where(e => e.Data....).ToList();     
asked by 11.01.2017 / 19:00
2
answers

Button / link within a view redirecting to another view

I have the following address of a view : http://localhost/Configuracao/Details/1 Where to create a button / link that redirects to another address of another view as follows: <a href="@Url.Action("~/Views/Ativos/Index", Mo...
asked by 20.02.2015 / 19:20
3
answers

Send a ListT with several items to the controller

Well, I'm facing the following problem in a project I'm working on: how to pass a list (List) with approx. 500 ~ 1000 lines from the View to the Controller? In fact, this list has a field called "Selected (bool)" from which the user selects o...
asked by 03.05.2016 / 19:59
3
answers

Persist information using ViewBag?

I have my login screen and want to show the name is the user id logged on another screen, so I can use this information. In my controller : [HttpPost] public ActionResult Index(TB_USUARIO model) { //aqui vai pesquisa...
asked by 28.12.2015 / 18:16
1
answer

How to remove URL after upload?

I have my URL www.site.com/product/link/codigo/1 After loading, I would like the URL to not appear in the browser, just www.site.com How can I do this?     
asked by 27.10.2014 / 19:14
2
answers

Rename error message

Next model : [DisplayName("Data:")] [ValueParser("ptdateparser")] [AssertThat("DeadLine > Today()", ErrorMessage = "* Data deverá ser superior a data de hoje")] [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/mm/yyyy...
asked by 12.07.2018 / 01:27
1
answer

IF condition in javascript only works once

I'm trying to make a Side Navigation , so on internet search, I found a little tutorial on the site: How TO - Side Navigation However, in my example I wanted a single button to open, and close, so I made the following changes: funct...
asked by 01.12.2016 / 12:47
2
answers

remove mask to save to the database

I'm using MaskMoney to create a mask in the field for the user to type. wanted to remove the mask, saving only the numbers and the comma (2 decimal places) in the bank.    $ 1,300,000.00 Just saving    1300000.00 I'm using asp.net-...
asked by 13.11.2016 / 00:55