Questions tagged as 'mvc'

1
answer

Problem with JSON in MVC5

at the time of writing JsonRequestBehavior.AllowGet I get marked that is badly written or does not exist, in the controller. public JsonResult Clases(string valuemarca) { return Json(obj2.ObtenerVehiculoClaseAsync("", ServicioM...
asked by 28.08.2018 / 18:01
1
answer

Get a default value in a select mvc 5

I have created a partial view in which a <select></select> object is filled from a sql server database by a for each . The values they take for example are:    1 Cleaning items       2 Hardware articles       3 Fr...
asked by 07.12.2017 / 05:36
2
answers

ActionPerformed within MVC

I have a question about a project that I am doing, which is the following: I am being asked for a project with MVC format, I already have the view and the model, I need to perform the ActionPerformed of each button of my project, which are appro...
asked by 30.05.2018 / 22:59
1
answer

Send form data with HTML table (multiple records) to MVC controller

Good morning. I work in a MVC C # project and I have a model that represents a table in my database, the model below only represents some properties of my class so as not to create confusion and represent the data of a single Event, the data of...
asked by 12.03.2017 / 15:05
1
answer

I can not convert a String to a Boolean

I am with a form, in C # with the MVC structure, and I can not convert the string to bool , it is assumed that the code to write must be done from the controller and in the html <form> <div class="editor-label">...
asked by 02.10.2018 / 21:00
2
answers

get value from @ Html.DropDownList in actionresult through formcollection MVC

I have an @Html.DropDownList that I filled with a List List with data already defined, the dropdown list is inside a form that is sent to the SaveConfiguration controller, I retrieve the data as a parameter to the FormCollection form controller...
asked by 22.03.2018 / 19:30
1
answer

how can I do so that I do not get numbers in my script when I retrieve information? MVC C #

The problem is as follows: I am using mvc in visual study, the problem is when I want to retrieve the information within a script which I do with an @foreach, where the information I send has quotes, which are then they change with numbers, whic...
asked by 21.12.2017 / 06:49
1
answer

Selection in table many to many MVC 5

Hello people, I am working on mvc 5 model first and I have 3 tables. -Roles -Roles Permissions -Permissions when creating the mapping of the database EF does not create the intermediate table (RolesPermisos) as it could make a selection of the t...
asked by 10.11.2017 / 15:23
1
answer

Optimize load of pages MVC 5

Cordial greeting, how can it be optimized so that javascript files like jquery and other libraries common to the whole solution so that they do not recharge each time you navigate between views?. As can be seen in the image, the download time...
asked by 06.08.2018 / 16:26
1
answer

Create Public Folder SpringMVC

In the current project I have a webservice (API-REST) this has a control panel where they fill out the forms to identify via web this webservice the detail is in that I do not know how to create a public folder example currently in the form t...
asked by 09.06.2018 / 06:29