Questions tagged [server-side-validation]
119 questions
0
votes
1 answer
CheckBox CheckedChanged event without AutoPostBack = True
I added checkbox control to the GridView column dynamically.
On each GridView_RowBound() event, checkbox is being added to the column.
Also defined, CheckBox_CheckedChanged event in the RowBound() event as below,
Protected Sub…

VHK
- 193
- 2
- 4
- 12
0
votes
1 answer
How to add form validation to a joomla module
I'd like to know if there's a way to add custom form validation to a module in joomla 3.7. I want my customer to be able to fill in two date fields [start] and [end] in the module administration. But I can't find a proper way to check something like…

Rico
- 398
- 2
- 6
0
votes
1 answer
Using a sanitizer in angular2 form usefull?
Is a sanitizer needed when my Angular(2) app is only gathering form values?
I send those values to the server to validate it against my validation rules (no client validation desired) and if everything is valid and the user clicks on submit, I…

FallenAtticus
- 23
- 4
0
votes
0 answers
Spring server side form validation
I have the following bean class which is submitted from jsp form. And i need to validate it before saving to DB. But i want to ignore the collection field from form validation as it returns null from form always.
I can remove that field altogether,…

Mohan
- 699
- 1
- 11
- 27
0
votes
1 answer
CodeIgniter form validation does not work for url
I used form_validation for validate URL by using this code:
$this->form_validation->set_rules("edtQuestionURL", "Site URL", "trim|required|url");
But every time I run my code, It returns false.
What is my mistake? I made some change in…

Yousef Rahimy Akhondzadeh
- 163
- 1
- 2
- 13
0
votes
0 answers
How to do a server side validation without ModelState change on AJAX post to Controller in ASP.Net MVC
I have a controller Edit which does an insert and update at the same action. In there I do a check against Active Directory. The applictaion should show a validation error if insert fails due to a mismatch of the username entered by the user and…

PineCone
- 2,193
- 12
- 37
- 78
0
votes
1 answer
LARAVEL 5.3 - Mark field by name after server side validation
So my question is how to mark/show messages via javascript after server-side validation. I know there's the $errors inside blade views but there's no way of telling which element could not be validated. The only way of knowing is to do…

Matheus Simon
- 668
- 11
- 34
0
votes
0 answers
Ember errors.add inside catch after save causes form button to not respond
My server responds with a 400 status if a book title already exists. The ember app catches the error and does a errors.add with the attribute name and error detail. For some reason when a receive the 400 when I change the title the form submit…
0
votes
3 answers
Custom Server Side Validation MVC Entity Framework
I'm trying to hook up some server side validation so there is some sort of last line of defense so bad data doesn't get through. One of my fields depends on a boolean value. If the boolean is true then the int value must be 0. If it is false then it…

ryan miller
- 105
- 1
- 9
0
votes
0 answers
server-side validation using html form as a guide
Are there any examples in the wild of server side validation implemented by way of validating the data returned from the user using the html of the form itself (ie using xpath queries to retrieve the tags to check their required, pattern, and type…

Mikr
- 1
- 1
0
votes
1 answer
Set ModelState Based on Server Side Query Result in MVC5
I have a query that tests for a valid postcode entry:
using (_ctx)
{
try
{
var pc = _ctx.tblPostcodes.Where(z => z.Postcode == postcodeOutward)
.Select(x => new { postcodeId = x.PostcodeID…

ComfortablyNumb
- 1,448
- 10
- 37
- 64
0
votes
1 answer
Unable to display partial view in modal on instance of getting server side error in MVC
I am struggling on this part from past 3 days. I have a _Layout page wherein I load a Login partial view in a modal div on click of login button. When I submit if any client side validations are there that will work fine and form will not submit…

Guruprasad J Rao
- 29,410
- 14
- 101
- 200
0
votes
1 answer
Verify javascript code at server
I have a text area in my web where user can add java script code. I need to check if this code contains any malicious code or not. What are the options at
Client end
Server end
Or where can I find a good material for checking for malicious code.
user2780901
0
votes
1 answer
How to validate US phone numbers, US state code and US zip code in PHP?
I want to validate US phone number, US state code and US zip code using PHP for it I wrote following functions but they are not working properly.
/** check phone number validation**/
function phone_no($str) {
return (bool)eregi( "^([-\(\)\+,…

PHPLover
- 1
- 51
- 158
- 311
0
votes
3 answers
Is client-side validation unnecessary?
Please check this question before. I frequently heard about
"... don't trust the client ! never trust the client ! never trust the user inputs !"
I agree with client-side validation alone is a very bad idea. But if so , what is the advantages of…

Cataclysm
- 7,592
- 21
- 74
- 123