Questions tagged as 'asp.net-mvc'

3
answers

Ajax works locally, but does not work on the server

I have an application in asp.net mvc 5 where the code below works locally (visual studio 2012), but does not work after posting to the server. controllerAction = "/Controller/Action/" controller = "/Controller/" $('#approve-btn').click(functi...
asked by 27.01.2016 / 19:09
2
answers

ID is null, when I enter the details through the index

When I enter the registration details by the ID index it is always null.    link Driver Details: public ActionResult Detalhes(int? id) { var disponibilidade = db.Disponibilidade.Where(d => d.DisponibilidadeID ==...
asked by 15.12.2015 / 20:53
2
answers

Asp.Net MVC Validators passing through the controller

When we create a project in Asp.Net it by default inserts some validators to be used with Razor, @Html.ValidationMessageFor(model => model.property) . I saw in different projects that these messages are generated by returning the...
asked by 25.08.2015 / 19:46
1
answer

Insert data with LIST in ASP.NET MVC

I'm trying to insert training log into a list that is being used instead of a database, but somewhere in the application it gets lost and the list keeps only the record that was entered via code in the constructor of the TrainingRepository class...
asked by 16.09.2015 / 18:45
1
answer

How to configure ASP.NET MVC validation to accept dates pt-BR?

I can not set the formatting of dates on my forms. I've tried several cases, all using the same view: @Html.EditorFor(model => model.Data, new { htmlAttributes = new { @class = "form-control" } }) Case 1: Clean and raw public DateTim...
asked by 18.09.2015 / 21:17
1
answer

404 Failure with ASP.NET MVC when attached file is large

I'm using the jquery.filer plugin to send files to attach files to my form. I chose this because it was a plugin that I was able to manipulate it to send the data of the other inputs along with the files and to avoid temporary folders....
asked by 23.10.2015 / 16:26
1
answer

Catch data from WebService in Action from C #

I have an application that accesses third-party WebService. To improve the testing process, I'm setting up a Web site to simulate the WebService. This site consists of several Actions, which return the XML, simulating data. This part is ok ....
asked by 26.06.2015 / 20:42
2
answers
3
answers

Modal Jquery does not open

I'm trying to implement a modal, but I can not get it to open, could anyone help me. <script src="~/Scripts/jquery-2.2.0.js"></script> <script type="text/javascript"src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery....
asked by 03.02.2016 / 18:17
1
answer

Why is my CONTROLLER not picking VIEW fields?

I'm doing a form in the VIEW, but the fields where I use radio and select (option) are not passing their values to the Controller. If anyone knows why. My VIEW: @model GerenciadorDeAtividades.Dominio.RecursoDominio @{ ViewBag.Title = "...
asked by 14.05.2015 / 16:03