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

1
answer

Call Action via javascript

Good afternoon, I need help with a simple problem, but it's knocking me down. I need to call a controller method and pass two parameters to it, I did something, but it's not working, does anyone know where I'm going wrong? View <input...
asked by 13.03.2017 / 19:33
1
answer

Can not implicitly convert type list to an object

Good evening, I'm doubtful of the following error:    Can not implicitly convert type   'System.Collections.Generic.List'   to   'ITCore.FlowCredit.Business.Entities.ProductAmortizacaoCreditoDiasSearch' The Code: private void LoadDia...
asked by 07.02.2017 / 23:42
1
answer

How to create a dynamic @Html.ActionLink with JQuery?

I'm trying to create a dynamic @Html.ActionLink fault with JQuery but I'm not getting it, how do I do that? $('#tableView > tbody').empty(); if (data["CategoriaProduto"].length > 0) { $.each(data["CategoriaProduto"], funct...
asked by 05.11.2016 / 12:31
1
answer

How to pass variables from C # MVC 4 to SSS SCSS?

I need to dynamically change my CSS files by pulling some data, such as colors, from the database. I have chosen to use SASS in the application, but can I import an application variable into MVC 4 into my SCSS file?     
asked by 11.10.2016 / 21:14
1
answer

Doubt with Tipada View?

I have the following: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using PostGetModel.Models; namespace PostGetModel.Controllers { public class HomeController : Controller...
asked by 30.09.2014 / 19:49
1
answer

Dynamic column with value appearing wrong in WebGrid

I have a problem creating a table with dynamic columns. I add the columns in loop in this way: for (int i = 0; i < attrIds.Count; i++) { resource_attr attr = resourceAttrRepository.Find(attrIds[i]); int lo...
asked by 17.11.2014 / 14:13
1
answer

Problem displaying image

As I display an image recorded in the database, I believe it is not actually recorded, because I can only see the name / format of the image. In this case, how do I display this image? I looked for some ways to do it using custom HTML helper...
asked by 14.09.2014 / 03:42
2
answers

Request ajax accessing scripts already included

Hey guys, I have a view that renders a partial view. Index.cshtml <script type="text/javascript" src="~/Scripts/jquery-2.1.1.js"></script> <div class="tab-control" data-role="tab-control"> <ul class="t...
asked by 30.07.2014 / 23:03
2
answers

Validating data with mvc asp.net (editing)

I have a user registry where I use the remote validation in the data annotation to check if the user that is being registered already exists, my problem is in editing, how I am changing and using the same object the system thinks I am registerin...
asked by 18.07.2014 / 01:08
2
answers

jQuery Mask Plugin does not format the number correctly

I'm working on an MVC4 project, the mask works correctly when saved, but when returning the database data the plugin shows incorrect data if the value ends at 0. Data example: 99.000,00 , when I go in the Edit View it gets: 990,00...
asked by 18.07.2014 / 21:03