Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2013, 07:42 PM
Authorized User
 
Join Date: Oct 2012
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Question Data Validation at the Server

On page 329 I read that the validation controls provide data validation on the user's forms and at the server as well. Where does the code reside that does the server side validation? Is that accessable to us? How can we test that the server side validation is working?
 
Old February 5th, 2013, 07:31 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You can disable JavaScript in the browser (using the Developer Tools in IE, or using Firebug in Firefox for example). Alternatively, you can disable client side validation on the controls using EnableClientScript.

Make sure you check IsValid at the server to work with the return values from the validation controls.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
nick1248 (February 5th, 2013)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation and format zone Excel VBA 2 August 7th, 2007 02:53 PM
Help with asp server side validation nkodali Classic ASP Basics 0 July 16th, 2007 04:02 PM
Data Validation in textbox rhd110 .NET Framework 1.x 1 March 26th, 2007 06:51 AM
Data Validation RollingWoodFarm Excel VBA 1 November 20th, 2006 01:12 PM
using javascript for server control validation swagatika ASP.NET 1.0 and 1.1 Basics 3 December 20th, 2005 08:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.