Questions tagged as 'asp.net-mvc'

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

How to delete in cascade in entity framework asp.net mvc

Good afternoon, I have the following relational diagram I have a problem, when deleting a record from the table Tbl_Horarios does not leave me, because it is related to more than one record in the Tbl_DetalleHorario table. How can I...
asked by 12.12.2017 / 20:40
1
answer

OutputCacheLocation.ServerAndClient does not work!

I'm using OutPutCache with the OutputCacheLocation.ServerAndClient parameter in an action that always returns images to me; However, the browser always downloads the images (it does not save them in cache), if I use OutputCacheL...
asked by 08.08.2018 / 20:09
1
answer

Error to authenticate - ASP .NET MVC

Dear at the moment that I authenticate I generate this error, to which it is due thanks     
asked by 04.04.2018 / 17:44
2
answers

How to serialize the data of an HTML table and send it through Ajax?

Good afternoon colleagues, I have a question about how I could serialize the content of an HTML table and then send it via ajax to the controller of my application in MVC5     
asked by 30.01.2018 / 00:40
1
answer

Help in saving image in SQL database MVC 5 and Entity 6.0

hello very good to all I come to you to ask for help that the truth is not how to solve it I created a CRD envisual studio 2013 that uses MVC 5 And entity 6.0 how can I upload an image from my CRUD created with MVC5 and save it in a sql database...
asked by 09.09.2017 / 21:49
1
answer

System.NotImplementedException when saving data in the DB

I want to save the ID of the user who logged in DB in the "CreatedBy" column in the DB All identities created by the user must have the ID of the user who created them, but when clicking on the "Create" button, I receive a < strong>...
asked by 18.08.2018 / 13:55
2
answers

DropDownList Asp.NET C # MVC

Then I leave the images (1,2). I have the BD "School" which has the Student and Group tables, and I want to add a DropDownList which shows the groups that exist in the BD and select it. I'd appreciate your help.     
asked by 30.03.2018 / 07:14
1
answer

The data is not displayed in the edit.cshtml view

Here is the code that I have made, but I can not make the data I want to edit appear, the data that is in the same table appears, but not the data that is in another table which is related to the main table, using the viewbag. Controller: p...
asked by 05.11.2018 / 21:14