Questions tagged as 'asp.net-mvc'

1
answer

How to format currency column of a WebGrid?

How to format the Value column of the WebGrid? Example of 3000,000 for 3,000.00 ? @grid.GetHtml( tableStyle: "webgrid", headerStyle: "header", alternatingRowStyle: "alt", selectedRowStyle: "select", footerStyle...
asked by 14.02.2016 / 21:54
2
answers

DropDown field increment

Well, I have the following problem. I have to use a function in JavaScript or JQuery to add new fields to populate and save in the database. In these fields I have to use a DropDown, but I do not know how I'll get the data from the database....
asked by 16.12.2015 / 18:26
1
answer

How to insert information into a Json object?

My problem is similar to this question: Question Stackoverflow But in this case the Json object is used to populate the table. Controller public ActionResult GetDadosItensVenda(int? Codigo) { try {...
asked by 06.12.2015 / 19:31
2
answers

Popular graphic with list - Java Script

Hello I am developing an academic system and I need a chart with the wrong questions per student subject. I have a list with Themes (which would be the x axis) and qtdErradas (which would be the y axis of the chart). My problem is with this p...
asked by 25.10.2015 / 03:42
1
answer

Where do I find the Microsoft.Reporting.WebForms.ReportViewer dll?

Where can I find the dll Microsoft.Reporting.WebForms.ReportViewer ? I need to use it on a project and I can not find it.     
asked by 05.10.2015 / 15:21
1
answer

From the View how to get Model in Partial View

In View main, Index.cshtml , I load a partial view where it has a model . How do I make the Index call this model so I can serialize and send it to an action controller ? Follow the example below: View Principal.cshtml @se...
asked by 05.11.2015 / 12:44
2
answers

DropDownList in views asp.net mvc error in validation

In view razor of asp.net mvc I have a dropdownlist with the following code: @Html.DropDownListFor(model => model.Banco, (SelectList) ViewBag.Banco, new {@class = "form-control"}) Even if you select the value, when it...
asked by 11.01.2016 / 13:10
2
answers

Foreach in Foreach

I need to make a foreach inside another but are two tables one is called categories and the other is a galerya, I need to return all galeryas within each category only the category name only appears once, here's my code (var db = new DBContext...
asked by 25.08.2015 / 22:05
1
answer

Doubt with Microsoft .NET Framework version asp.net mvc

Doubt, am I using the wrong version? The image shows the Version Information: Microsoft .NET Framework Version: 4.0.30319; ASP.NET Version: 4.0.30319.34274 On my hosting server informs this: ASP, Asp.NET 3.5, Asp.NET 4.0, Asp.NET 4.5 Ajax...
asked by 08.01.2016 / 01:14
1
answer

Problem in View (details)

I'm repeating the Letragroup in the View, how can I use the .first in the query in the controller? View Error: link View (details): @model IEnumerable<WebAppCatechesis2.ViewModels.GrupoViewModel> <dl class="dl-horizontal"&...
asked by 07.01.2016 / 18:11