Questions tagged as 'asp.net-mvc-5'

2
answers

Data Annotations in a form do not work

I have a form to persist data with entity framework , I put DataAnnotations to my model, but still I do not validate the values, I do not see the messages of error , if I do not put nothing in the name field or in the select...
asked by 09.06.2017 / 20:20
1
answer

Get values from a DropDownList

As I can get the value of a DropDownList in the controller, it is assumed that there is a DropDownList which when selecting an option and pressing search should filter and throw the data in the table below in that same view, I am working on the...
asked by 11.11.2016 / 06:20
1
answer

Problem with styles in form created with ASP.NET MVC 5

I am creating a form using Microsoft MVC technologies. Basically it is a <div> that are divided to have two columns and there to put the labels and controls. The problem is that the text box of Email is misaligned. This is...
asked by 01.11.2016 / 00:02
2
answers

Is it possible to use a value of javascripts in razor asp.net?

Suppose I have the following value of javascripts: <script type="text/javascript"> var variable_js=10; </script> and in razor, an asp.net variable, I want to assign the value of javascripts that you declare. For example: @...
asked by 15.05.2016 / 22:32
1
answer

Error of the underlying provider in Open

I have an error that says: Error of the underlying provider in Open, and in in innerexcepcion says:    {"Timeout value expired." The timeout period   It ran out during the pre-session start phase. It is possible that the   connection will tim...
asked by 07.02.2016 / 04:02
2
answers

How to obtain efficient data records in a dataTable in MVC asp.net

I have the following dataTable that I show from the database. In the View: $(document).ready(function () { $('#example').DataTable({ "lengthMenu": [[2, 5, 10, 25], [2, 5, 10, 25]], "language": { "sProces...
asked by 15.04.2016 / 06:39
1
answer

Perform search by date in a bd on asp.net

I'm doing a web in ASP.NET MVC 5 that shows a list of people, currently only shows the ones that are in that day, but since the bd stores every day I want to create a view that is history style that they put the day that they want to show and th...
asked by 19.12.2018 / 18:36
2
answers

Problem with the property date of an object that changed from AJAX to a Web Service

I have a normal and current form with technology
asked by 03.02.2016 / 17:23
4
answers

MVC template does not appear in Visual Studio 2015

I am trying to create an ASP.NET application with the MVC 5 template. However, when I try to choose the template it does not appear. When I use Visual Studio 2013, it does give me the option to use MVC 5. I already tried using the repair o...
asked by 25.03.2016 / 02:30
2
answers

Use of ajax ASP.NET MVC

I'm exporting to Excel But I need to use ajax , because I need that when I give in Exportar a Excel leave me in the same view This is from my controller where I have: My ActionResult of index and void wher...
asked by 23.11.2018 / 18:33