This is a migrated thread and some comments may be shown as answers.

RadInputManager and server side validating

2 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
reza
Top achievements
Rank 1
reza asked on 27 Nov 2011, 02:39 PM
Hi
If I do server side validation by using RadInputManager and a code like this : 
radInputManager1.InputSettings[0].Validate(txtName);
                if (!radInputManager1.InputSettings[0].IsValid)
                        return false;

(radInputManager1.InputSettings[0] does a regular expression validation on txtName)

and if the posted data was invalid (by disabling javascript in client or any why that that the user bypassed the javascript validation)
Can I be sure that the validation is done correctly on the server side?
I mean , can user manipulate the regular expression or IsRequired field in a way that cause server side validation return InCorrect result too ?

Thank you very much for your feedback

2 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 30 Nov 2011, 10:09 AM
Hi Reza,

By design there are no modifications on client side object of RadInputManager that to result in changing of the server side validation behavior of the control. The InputSettings will still remain the same on server side even if the user change them using some JavaScript to bypass the client validation.

Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
reza
Top achievements
Rank 1
answered on 30 Nov 2011, 06:07 PM
OK
Thank you very much
Tags
General Discussions
Asked by
reza
Top achievements
Rank 1
Answers by
Vasil
Telerik team
reza
Top achievements
Rank 1
Share this question
or