All Questions
164 questions
0
votes
0
answers
43
views
How to implement client-side and server-side validation for teacher updates in ASP.NET MVC?
I’m working on a school management system (ASP.NET MVC + MySQL) and need to implement update functionality for teacher records with robust validation. Here’s where I’m stuck:
Current implementation:
...
-1
votes
3
answers
617
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. ...
0
votes
1
answer
2k
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 ...
-1
votes
1
answer
163
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 ...
0
votes
1
answer
109
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 ...
1
vote
1
answer
3k
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 ...
0
votes
1
answer
1k
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 ...
0
votes
2
answers
190
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 ...
0
votes
1
answer
451
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"...
0
votes
1
answer
538
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...",
...
1
vote
1
answer
1k
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 ...
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.
0
votes
1
answer
1k
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 ...
0
votes
2
answers
75
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 ...
-4
votes
1
answer
52
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 ...