Questions tagged [server-side-validation]
119 questions
0
votes
4 answers
How do I prevent hidden fields from interfering with server side validation in MVC?
I have a partial view that displays a number of inputs based on a view model. In some situations, some of those inputs are not rendered by the partial view, but are still decorated with [Required] attributes in the view model. As a result, when the…

Mykroft
- 13,077
- 13
- 44
- 72
0
votes
1 answer
MVC Bootstrap PopOver with Server-side Validation
I have a simple MVC application that displays a BootStrap PopOver Modal with a form on it. I would like to run some server-side validation against the form as it the data is submitted. If an error is detected, I would like the application to keep…

Rethic
- 1,054
- 4
- 21
- 36
0
votes
1 answer
MVC3 server side validation, check validity of property in partial class
I have a Model that as one of its properties has a list of child models. In my view each child model is validated separately using custom client side validation. Everything is being validated correctly, and the correct validation messages are being…

Ben
- 5,525
- 8
- 42
- 66
0
votes
1 answer
javax @Pattern validation regex for characters size range
I am implementing server side validation for my REST service. In below class I have imposed javax size validation. The problem is that the size validation fires even when address1 is null or zero length string. I want the size validation to occur…

Kaizar Laxmidhar
- 859
- 1
- 17
- 38
0
votes
0 answers
How to display Spring Form Validation message inside Jquery Dialog?
I have a Jquery Dialog which contains text fields wherein user can edit his personal details. An Ajax call is made to backend controller when user clicks Update button. Now I need to perform Server Side Validation (Spring Validation).
How to…

Praveen Gr
- 187
- 1
- 9
- 22
0
votes
1 answer
How does facebook server validation work?
Considering a simple example:
Login to your fb account
Post a status
Click on the status dropdrown(top-right corner)
Open developer tools in your browser and find the html for the "delete" option
edit a parameter which looks like …

frisco_1989
- 75
- 1
- 8
0
votes
2 answers
Date Format validation Giving an Error
I have used date format expression in my project. I have used it in Javascript it's working fine. But while i am using it at Server side it gives me an error that Unrecognized Escape Sequence. My format is as below. Even i tried Regex. but still not…

The Hungry Dictator
- 3,444
- 5
- 37
- 53
0
votes
3 answers
When server side validation is required?
I am submitting a form using jquery like if a user clicks on the submit image it will submit the form. So in this case if the user will disable java script on the browser ,user can not submit the form.
So do I need server side validation for this…

Deepak Kumar Padhy
- 4,128
- 6
- 43
- 79
0
votes
2 answers
Fire Custom Validator Before Processing Other Code
I have the following in my .aspx file:

Baxter
- 5,633
- 24
- 69
- 105
0
votes
1 answer
Technique to reduce load on server,while searching & comparing for particular item into large(10,000 entries) LIST object created at server side
I want to know that,
If we have LIST object created at server side which contains large amount of data entries like employess master data(10,000), & I want to give search option to search valid employee ID or name.
So I have tried to compare that…

user1746468
- 75
- 2
- 11
0
votes
1 answer
Server side validation if Javascript disabled on user's browser
I have developed a small form with 3 input type = text and one input type = submit button. The end user fills the form and submit it, but no data inserted into backend table. (probably empty form is submitted). I get to know that Javascript is…

SPBeginer
- 733
- 3
- 14
- 29
0
votes
0 answers
Using custom validator without postback in asp.net
i am using custom validator on one of my web form, the requirement is to check for the bookcode in the database and if it exists, then it should display message, now i am using custom validator for the same, what i want is, it should not postback if…

Abbas
- 4,948
- 31
- 95
- 161
0
votes
0 answers
Redirecting a page using the form's action attribute but only after checking the server-side validation in php
Let's say I have a simple form as follows that has only a text field and a submit button.
0
votes
1 answer
ASP.NET MVC fails to bind and validate DropDownListFor if Range is set and Javascript disabled
I have the following property in my model:
[Required]
[Range(1, int.MaxValue, ErrorMessage = "Bad number")]
public virtual int Number { get; set; }
I am filling it in Controller:
List items = new…

JustAMartin
- 13,165
- 18
- 99
- 183
0
votes
2 answers
Want to invalidate web form if method called in $.ajax url returns false
A simple registration form has a field “Preferred login id (username)”. As soon as user enters email, I validate entered username (if it already exists or not) by comparing it with database values. For this I am doing server call using $.ajax…

Sarang Amrutkar
- 873
- 1
- 7
- 10