O'Reilly logo

Visual Studio LightSwitch 2012 by Tim Leung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 5

image

Validating Data

There’s an old saying in IT: garbage in, garbage out. In essence, it means that if you enter nonsense data into a computer system, the results of any processing will also be rubbish. Fortunately, LightSwitch makes it easy for you to ensure that users can enter only clean data.

In this chapter, you’ll learn how to do the following:

  • Define data rules by using the table designer
  • Write validation code that runs on the server
  • Create validation code that runs only on the client

This chapter extends the HelpDesk application and shows you examples of how to apply validation rules. When a manager attempts to save an engineer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required