Skip to main content

All Questions

Tagged with
-1 votes
3 answers
302 views

How to add form validation to a modal in ASP.NET MVC?

I need to create a form in a modal which has a required field. The user must only be allowed to submit the form once the required field is filled and if it is empty an error message must be displayed. ...
Dilshan Prasad's user avatar
0 votes
0 answers
47 views

I can't see error validation messages when using Fluent Validation

I am using Fluent Validation in my project. I put a warning so that the columns should not be empty. But there is no warning on the screen, where am I going wrong? TaskListValidator.cs, public class ...
Gökmen Ada's user avatar
0 votes
1 answer
1k views

ASP.NET Core MVC custom validation will not display error message and still submits form [duplicate]

I wanted to ask regarding an issue wherein I made a custom validation based on MVC Model Validaton but unable to make the error display. I'm making a RequiredIf attribute wherein if a property is ...
Gino Mortillero's user avatar
-1 votes
1 answer
150 views

Best way to validate certain words in textbox in ASP.Net C#

I have a PIN textbox where I need to trigger a validation if user entered an Invalid PIN like 111111 or 000000. Already tried using CustomValidator with JS call but the "Invalid PIN" message ...
frank3579's user avatar
0 votes
1 answer
104 views

Validation works but message is not displayed

I am trying to validate specific fields from my model before the form is submitted. It works but message doesn't show, this is because name attributes doesn't match. This is my model: public class ...
oknsyl's user avatar
  • 77
1 vote
1 answer
2k views

Finally solved: The field must be a date

PROBLEM: I need to capture Date and Time data and I wrote this on my model class: [Required(ErrorMessage = "Date of Birth cannot be empty")] [Display(Name = "Date of Birth")] public DateTime ...
Alfi's user avatar
  • 159
0 votes
1 answer
993 views

ASP.NET Core 3.0 Razor JQuery validation rules on partial page

I have a page in ASP.NET Core 3.0 with RAZOR(no MVC), with a partial page loaded with AJAX; load works well but validation rules no. Validation with "required" notation on otherinput fields also works ...
MrTex's user avatar
  • 249
0 votes
2 answers
174 views

How to select minimum three file in file upload control

How to select minimum three files in multiple file upload Control Should i Add AJAX FILE UPLOAD CONTROL TOOL KIT I want to select minimum three files for file upload control, and when i select less ...
Nits Patel's user avatar
0 votes
1 answer
430 views

ASP.NET Core 2 - Default number input validation is overriding my custom client validation

I have two inputs that I need to validate against each other. They are a minimum and maximum. Here is the part of my view defining them. <div class="form-group"> <label asp-for="MinTubes"...
Nic Estrada's user avatar
0 votes
1 answer
500 views

kendo combobox required validation not working

I have a kendo combobox given below. I want to validate if item are selected or not on a button click. $("#reason").kendoComboBox({ placeholder: "Select Reason...", ...
sandeep.mishra's user avatar
1 vote
1 answer
991 views

Custom Validate Attribute not triggering jQuery validate

I'm struggling to figure out an issue with a custom validation attribute and why this is not acting the same as a non-custom validation attribute. I've setup a really basic custom validation ...
RabidlyChurls's user avatar
0 votes
2 answers
37 views

How to validate model bound form using jquery on ajax post?

I am using an mvc form with model bound field which have required tags. but submitting them using ajax post by serializing the form. Now the validation messages doesn't appear.
Stacky's user avatar
  • 67
0 votes
1 answer
885 views

Need to validate the DateTime from server side using form validation in MVC

I have a client side validation which restricts user to enter the date only in a certain range which is 20 years back from now. This is working fine. But the problem is, when the user changes his ...
user2083386's user avatar
0 votes
2 answers
69 views

Allow only First two and last two are alphabets and rest in between are numeric(e.g EE123456789IN) in text box

Hey I am trying to validate a textbox for getting first two and last two char are alphabets and rest of are numeric in between in the length of 13. eg EE123456789IN . How to validate this in textbox ...
Manish Kharotia's user avatar
-4 votes
1 answer
48 views

Disabled fields with JQuery appearing in request on C# server side

I am disabling some fields on the client side dynamically with JQuery. And while submitting the form they are appearing on the server side request. As far as I went through documentation it should ...
Manpreet Singh's user avatar

15 30 50 per page
1
2 3 4 5
11