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

Validate Input - Best practice

3 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 04 Feb 2014, 04:51 PM
Hi,

When using the grid to input content through the edit form templates for example.
How are people validating the input against script attacks and such.

Cheers,

Jon

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Feb 2014, 04:55 AM
Hi Jack,

Please go through this documentation to know about validation settings in Radgrid.
Validation
Also take a look at this demo to know more about its working when using EditForms.
Grid - Flexible Server-Side Validation

Thanks,
Princy
0
Jon
Top achievements
Rank 1
answered on 05 Feb 2014, 08:16 AM
Thank you Princy,

Do most people use Server.HTMLEncode  on the the output to the grid?

Cheers,
Jack
0
Princy
Top achievements
Rank 2
answered on 06 Feb 2014, 03:53 AM
Hi Jack,

I'm not clear about your requirement. The RadControls which use the HtmlEncode property are RadGrid and RadTreeList, more specifically - all their columns that are inherited from GridBoundColumn\TreeListBoundColumn. Incase you need HtmlEncode you can use a GridBoundColumn with HtmlEncode property set.

Thanks,
Princy
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jon
Top achievements
Rank 1
Share this question
or