Questions tagged as 'cshtml'

1
answer

how to display the files of a folder on a website

Currently I have a very simple console app that shows me the names of the files that are inside a specific folder. public void archivoCarpeta() { string carpeta = ConfigurationManager.AppSettings["carpetaDescarga"]; DirectoryInfo dir =...
asked by 29.08.2018 / 03:22
2
answers

How to put a button inside a table

I have the following code: <div class="table-responsive"> <table id="Grid" data-toggle="table" data-url="@Url.Action("Metodo", "Controller")" data-method="post" data-pagination="tr...
asked by 16.04.2018 / 20:54
2
answers

Add template for email, already defined in .cshtml

I am sending an email to the user who forgot their password, the email can now be sent, but I would like to add a personalized template. I do not know if it would be possible to pass the view .cshtml as a body parameter to the email. I alread...
asked by 16.07.2018 / 16:33
1
answer

Consume jQuery functions from another file

I tell you, I'm trying to make a '' library '' of jquery functions so as not to reuse so much code, and to begin with, I'm trying with the following function. jQuery.fn.soloNumerosDecimales = function () { return this.each(function () {...
asked by 05.03.2018 / 19:30
0
answers

Uncaught ReferenceError: LocalEmpCallback is not defined

In one view I have the following code: <tr id="[email protected]" class="ct-row" data-status="@value.PerfilEmpleadoCentroID"> <td onclick="LocalEmpCallback(@value.EmpleadoID)"> <p class="list-text">@value.Emp...
asked by 16.11.2018 / 11:45
0
answers

select is not showing Options

I do not know much about this, they hired me for a big and advanced project, and I do not even know what's happening. I have a <select> that I create via a template on asp.net mvc: <div class="col-lg-12"> <select multi...
asked by 07.09.2018 / 01:19
2
answers

Apply selected on a select with Razor

I have the following code in a file with cshtml extension: @Html.DropDownList("TipoIdentificacionId", null, htmlAttributes: new { @class = "form-control" }) With which I load in a select a list that comes from the database, this does it wel...
asked by 16.05.2018 / 23:02
0
answers

webapi cshtml capture value in input

HELP, estimated a favor in which way I achieve that when I click on the button called update in the first input I capture the id, <html> <head> <title>Vehiculos</title> <link href="~/Content/bootstra...
asked by 07.05.2018 / 10:18
3
answers

How can I make a Vista pass a ListModels to a controller? One of the fields of the Model is loaded by the user in the view

I have a view that corresponds to a survey. It is loaded with the questions and at the same time in the last column has a DropDowList with the possible answers. The problem I have is that I can not get my controller to receive the data of the qu...
asked by 13.03.2018 / 14:49