Questions tagged as 'razor'

1
answer

Problem sending data to the controller from jquery ajax

I try to send a parameter to the controller from jquery using an ajax call and by POST. I get an error 500.    Failed to load resource: the server responded to a status of 500 (Internal Server Error) My controller's code is this: [Autho...
asked by 10.12.2018 / 11:54
0
answers

Pass data from one view to another view MVC 5 Entity framework 6 sql server

I have a view where I load the information of what I call an initiative which is linked to a Tleads table, this is the view. <br /><br /><br /> <div class="panel panel-primary"> <div class="panel-heading">...
asked by 26.11.2018 / 19:21
0
answers

When rendering partial view, I lose items loaded with jquery in dropdowlist

I have this main view: @model JedyHealthWeb.Models.ResponsableCaso @ {     ViewBag.Title="Responsible for the account.";     Layout="~ / Views / Shared / _LayoutSinControles.cshtml"; } Information of the person in charge of the account....
asked by 13.11.2018 / 05:47
0
answers

Popup Java Script

Hello, I need your help again, I need to make a VerDetails of the follow-up, I have done the selection and it returns the required fields. In the controller I have the DetailsTracking function In the part that I need your help is in javascript I...
asked by 31.10.2018 / 08:36
1
answer

Show result of 2 stored procedures in a view

Hello everyone I am new in the development world with asp.net, I want to show the result of 2 procedures in one view. public List<prodUnidad> Detalle_Producto(string codigo) { List<prodUnidad> detalleProducto = new List...
asked by 17.09.2018 / 03:17
2
answers

How to hide an input element when selecting a radiobutton in mvc asp.net?

I am new to this working environment using aspnet and I would like to know if there is a way to show an input when selecting an item on the radio button without trying to use javascript.    Method created in the controller called tg04Personas...
asked by 05.09.2018 / 19:40
1
answer

Send Label.textContent as parameter in an @ Url.Action

Hello people, I am a newbie in MVC and I have a question, is it possible to pass the text of a Label as a parameter? My idea, is that from that btn, send the controller the text of the label and then use it in the controller. The point is,...
asked by 02.08.2018 / 04:44
0
answers

row selected by default first in an HTML5 table

Hello, I have an html table that I fill from a model and when I click on the row I load some data in a form, I need that when I click on the row I always leave by default selected at the top of the table <table id="tabla" class="table...
asked by 25.07.2018 / 22:48
1
answer

Load Model Variable from JavaScripts

I have a Razor C # View in which I have a button. When I click on the button I capture by means of JS its respective ID, what I want is for that ID obtained, to be loaded in a current Model Attribute, for example @ Modelo.Id my button: <...
asked by 12.07.2018 / 19:59
0
answers

how to configure visual studio 2017 with the auto sync css?

happens that the CSS code works only in explorer and edge but not in chrome or firefox and I saw that there is a way to configure the "auto sync css" but I do not know how to do it, I do not know if I need to install some Ngget, is the first tim...
asked by 04.07.2018 / 21:31