Questions tagged as 'razor'

0
answers

Combos in the layout, with Razor .NET

Good day, I have to add to the _layout.cshtml 2 combos that are always visible, even if I change my controller or view, I'm new to .NET and I wanted to know how I can do this. Combos are generated from a query in the database. I'm using .NET, MV...
asked by 21.03.2017 / 12:48
1
answer

There is no ViewData item of type 'IEnumerableSelectListItem' that has the key 'SearchToners'. But the DropDownList is NOT within the Form

I have this form: @using (Html.BeginForm("Create", "Equipments", FormMethod.Post, new { })) { @Html.AntiForgeryToken() @Html.HiddenFor(model => model.Parts) @Html.HiddenF...
asked by 05.01.2017 / 21:27
1
answer

Error creating a partial view strongly typed in Visual Studio Express with the Razor engine

When I try to create a strongly typed partial view in visual studio 2012, I receive the following error:    There was a problem getting an AppDomain to run the transformation from the host. The process can not continue. This problem doe...
asked by 16.11.2016 / 17:24
1
answer

How to add values of a datatable, depending on whether the following value is different from the current one? In MVC C #

I have the following datatable in the view, which lists certain data: <table id="table_listadoLineasComprobante" class="table table-striped table-bordered tableSection_2" style="margin-bottom: 0 !important;"> <thead> <tr sty...
asked by 15.09.2016 / 01:25
2
answers

How to access a private static array from another class?

private static List<Receta> _recetas = new List<Receta> { //contenido array }; public List<Receta> GetRecetas() { return _recetas; } This is the code if I have a Get method but how do I access it from another class w...
asked by 12.07.2018 / 22:48