Questions tagged as 'razor'

2
answers

Consuming a service from the web api in mvc?

I am trying to consume web service api via httpwebrequest and razor to show it in mvc view. in the mvc controller I have this code in which I want to consume the api using EntradaElectronicaAlmacenApi.Services; using System.IO; using System.Ne...
asked by 27.03.2018 / 03:43
1
answer

Difference between Html.BeginForm () and Html.BeginRouteForm ()

Basically that's my doubt, what difference there is between these two html helpers . and when you should use one or the other.     
asked by 08.04.2016 / 19:34
1
answer

ActionLink in the form of Routing by parameters instead of QueryString

I'm trying to make it use a ActionLink with multiple parameters to generate a link to me in the form {Controller}/{Action}/{idCompania}/{idLocal}/{fecha} But it always generates a querystring : {Controller}/{Action}?idCompania=0&a...
asked by 23.12.2015 / 16:36
1
answer

Get value of a partialview in the parent view

Actually, I have two questions to ask you related to the partialview. First, I will comment on how I show the partialview Question One Add.cshtml @Html.EditorFor(x => x.Suma) <div class="modal fade" id="exampleModal" tabind...
asked by 16.04.2018 / 17:28
4
answers

remove label input / with AJAX

I have several inputs that I charge with a foreach with Razor. <table class="table"> @foreach (var item in Model.Municipalities) { <tr> <td>...
asked by 14.06.2016 / 17:06
1
answer

How to get the value of an Html.DropDownList to pass its value as a parameter to a partial view in MVC asp.net

I have the following dropdownlist, which shows the values 5,10 and 15: <% Dim listItems = New List(Of ListItem) From { _ New ListItem() With { _ .Text = "5", _ .Value = 5 _ }, _ New ListIt...
asked by 15.05.2016 / 02:47
1
answer

Show users who do not have a department

I want to show the names of people who do not have a departamento The data is: +----+---------+----------------+ +----+--------------------+ | id | Nombre | idDepartamento | | id | NombreDepartamento | +----+---------+--------...
asked by 14.01.2017 / 00:05
1
answer

I need to Refresh a View When using onchage in a select. in MVC 4 razor C #

I have a problem with the use of a select class="selection-box large-select" name="drop" id="drop"onchange="rut()"> which I am using it to send its value to a [HttpPost] public ActionResult MiPerfil(string pRutIn) { pFecha...
asked by 16.09.2016 / 19:43
1
answer

How to get dynamic checkBox values in the ASP.NET MVC controller

I made a view that relates the role of the user to the user, created the view with the dynamic check boxes that can register roles and then assign it to the user, only when sending the marked roles, in the controller does not return to the contr...
asked by 05.09.2018 / 19:22
2
answers

Pass htmlAttributes to EditorFor template

Good morning! I am working on templates for EditorFor for the different types of data, specifically int and double in order to generate them in text type, with a oninput that validates me not to enter incorrect informat...
asked by 27.04.2018 / 14:12