Questions tagged as 'unobtrusive'

2
answers

Extend a specific jQuery method in ASP.NET MVC jquery.unobtrusive-ajax.js

I'm using the extensions methods @Ajax.BeginForm() to save the data via AJAX. To prevent more than one click on the submit button, which could cause a double insert in my database, I decided to include a small snippet of code inside the...
asked by 10.03.2014 / 20:19
1
answer

Ajax.BeginForm returning PartialView as View

Good Night! I'm working on a Bed Management project. In a given View, I am displaying the Registered Nurses, and for filtering purposes , a field where you can search for the name of the Department to which the ward ( s) belongs. As picture...
asked by 02.06.2015 / 00:09
1
answer

Cause form validation in an asp.net mvc 5 link

Good afternoon everyone! I have a form, I created the rules using DataNotations and it works great when I use a button or input type submit inside my form. Very well! I want to change this button to a link that will call the ajax functi...
asked by 22.06.2015 / 19:03
2
answers

Client-Side Validation (Jquery) conditional attribute

Late! I am performing a complex validation on a specific class with the following code (reduced for simplicity): public class Classe1 : IValidatableObject { [Key] public int Id_Classe1 { get; set; } [Required] public int Id...
asked by 29.08.2014 / 18:28
1
answer

Validate Datepicker that contains only date

I use Asp.Net Core MVC (Razor + Jquery Validate + Unobtrusive). I display in a Datepicker only the date part of a DateTime field through the following code in my ViewModel: [Required(ErrorMessage = "* preenchimento obrigatório")] [DataType(Dat...
asked by 07.10.2018 / 03:39