Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/39

Click to flip

39 Cards in this Set

  • Front
  • Back
What three controls can be used to display a navigation structure on a web page?
1. SiteMapPath (Breadcrumb control)
2. TreeView
3. Menu
What is the default data source for storing a site hierarchy in the site navigation system?
An XML file
What configuration element is used to represent a node in a hierarchical site map structure?
siteMapNode
What class is used for an in-memory representation of the navigation structure for a site?
SiteMap
How must a site map be associated with a Menu or TreeView control?
Using a SiteMapDataSource control.
How is a site map associated with a SiteMapPath control?
The SiteMapPath displays information found in the SiteMap class which, by default, is loaded by ASP.NET using an XML file in the root application directory named web.sitemap.
When does page validation occur?
Validation controls are invoked when a user submits a page to the server. Validation occurs after page initialization and before any change or click event handlers.
What two properties can be used to test programmatically whether a user's input passed validation?
1. IValidator.IsValid: Test individual control

2. Page.IsValid: Test all controls on a page
What method can be used to instruct a group of validation controls on a page to perform validation?
Page.Validate
What method returns a collection of control validators for a specified validation group?
Page.GetValidators
What method can be used to instruct a single validation control on a page to perform validation?
IValidator.Validate
What property is used to associate a control with a validator?
BaseValidator.ControlToValidate
What type of validator can be used to mark an input field as required?
RequiredFieldValidator
What type of validator can be used to compare a user input value to the value of another input control or a constant value?
CompareValidator
What CompareValidator property is used to specify an input control to compare with an input control being validated?
CompareValidator.ControlToCompare
What CompareValidator property is used to specify a constant value to compare with an input control being validated?
CompareValidator.ValueToCompare
What CompareValidator property can be used to specify the type of comparison to perform?
CompareValidator.Operator
What property is used to specify the data type used for comparison by validators that perform comparisons?
BaseCompareValidator.Type
What type of validator can be used to ensure a user's input is between upper and lower boundaries?
RangeValidator
What RangeValidator property is used to specify the lower boundary?
RangeValidator.MinimumValue
What RangeValidator property is used to specify the upper boundary?
RangeValidator.MaximumValue
What property of RegularExpressionValidator can be used to specify the regular expression used to validate user input?
RegularExpressionValidator.ValidationExpression
What type of validator can be used with a user defined validation function?
CustomValidator
What event is exposed by CustomValidator in order to perform server side validation of user input?
ServerValidate
How can the value to validate in the CustomValidator.ServerValidate event handler be accessed?
ServerValidateEventArgs.Value
What CustomValidator property can be used to associate the validation control with a client script validation function?
CustomValidator.ClientValidationFunction
How is the result of a CustomValidator.ServerValidate event handler returned?
The result of the validation must be stored in the ServerValidateEventArgs.IsValid
property.
What property of server controls and validator controls can be used to create independent sets of validation controls on a page?
ValidationGroup
What validation controls consider a blank input valid?
All validation controls except RequiredFieldValidator.
What property can be used to specify how error text is displayed within a validator control?
BaseValidator.Display
What are the 3 display modes for error messages in validation controls?
1. Static
2. Dynamic
3. None
What are the 3 types of display modes for error messages in a ValidationSummary control?
1. BulletList
2. List
3. SingleParagraph
What ValidationSummary property can be used to display summarized error messages in a message box?
ValidationSummary.ShowMessageBox
What property is used by ValidationSummary for the errors that are displayed?
BaseValidator.ErrorMessage
What ValidationSummary property can be used to display summarized error messages on a web page?
ValidationSummary.ShowSummary
Using validation controls, what are the four different ways to display error text on a web page?
1. Inline
2. Summary
3. Inline and Summary
4. Custom
How can validation for a specific control be disabled?
Set the control's CausesValidation property to false
How can a validation control be disabled?
Set the validation control's Enabled property to false.
How can client side validation for a validation control be disabled?
Set the validation control's EnableClientScript property to false.