Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
39 Cards in this Set
- Front
- Back
What is the base class associated with all ASP.NET files that have an .ascx file extension?
|
System.Web.UI.UserControl
|
|
What directive is required for a page to recognize a user control being used declaratively?
|
@ Register
|
|
What directive is required for a page to recognize a user control being used imperatively?
|
@ Reference
|
|
How can a user control expose a template to be used declaratively?
|
By implementing a property that returns ITemplate.
|
|
What attribute must be applied to a user control's template property in order to associate the template to its naming container?
|
TemplateContainerAttribute
|
|
What interface must a template naming container implement?
|
INamingContainer
|
|
What is the base class for controls that render visible UI elements on a page?
|
System.Web.UI.WebControls.WebControl
|
|
What is the base class for controls that render elements that are not visible on a page?
|
System.Web.UI.Control
|
|
What method is called by the framework to render the contents of a custom control between the begin and end tags?
|
WebControl.RenderContents
|
|
What attribute specifies the default tag generated for a custom control when it is dragged from a toolbox in Microsoft Visual Studio?
|
ToolboxDataAttribute
|
|
What are two ways to associate a bitmap with a control when the control is displayed in the toolbox?
|
1. Name the bitmap exactly the same as namespace-qualified name of the control.
2. Use ToolboxBitmapAttribute to specify the name of the bitmap. Note: In both scenario's the bitmap must be an embedded resource in the same assembly as the control. |
|
What assembly level attribute can be used to suggest a default tag prefix that a visual designer should use for your control?
|
System.Web.UI.TagPrefixAttribute
|
|
What configuration element can be used to add a tag prefix/ namespace mapping for a control, as an alternative to using @ Register?
|
controls
|
|
What property is used to determine the HtmlTextWriterTag value that is associated with a custom Web server control?
|
WebControl.TagKey
|
|
What property is used to determine the name, in string form, of the control tag associated with a custom Web server control?
|
WebControl.TagName
|
|
What method can be overridden to implement logic to add styles and other attributes to the element rendered by a custom Web control?
|
WebControl.AddAttributesToRender
|
|
What attibute is used to specify the class used to implement design-time services for a component?
|
DesignerAttribute
|
|
What attribute controls the parsing of content nested inside a server control tag declared on a page?
|
ParseChildrenAttribute
|
|
What abstact class implements the basic functionality required by Web controls that contain child controls?
|
CompositeControl
|
|
What method can be used to delete the view-state information for all of a server control's child controls?
|
Control.ClearChildViewState
|
|
What class represents the base class for a tabular data-bound control that is composed of other server controls?
|
CompositeDataBoundControl
|
|
What method must be overridden when deriving from CompositeDataBoundControl in order to create the control hierarchy?
|
CompositeDataBoundControl.CreateChildControls
|
|
What protected Control property is used to indicate whether child controls have been created?
|
Control.ChildControlsCreated
|
|
What attribute can be used to enable theming for a custom control property?
|
ThemeableAttribute
|
|
What class can be used to support custom web control styles?
|
Style
|
|
What interface must be implemented for custom styles, in order to persist custom attributes?
|
IStateManager
|
|
What method can be used to copy style elements to a web control?
|
WebControl.ApplyStyle
|
|
What method is used to process postback data for an ASP.NET server control?
|
IPostBackDataHandler.LoadPostData
|
|
What three operations are recommended to be performed when overridding Control.CreateChildControls?
|
1. Clear the controls collection
2. Build the control's tree 3. Clear the view state of child controls |
|
What method provided in BaseDataBoundControl can be used in a derived class to retrieve data from a data source?
|
BaseDataBoundControl.PerformSelect
|
|
What method provided in BaseDataBoundControl can be used in a derived class to validate a bound data source?
|
BaseDataBoundControl.ValidateDataSource
|
|
What attribute is used to specify the default property for a component?
|
DefaultPropertyAttribute
|
|
What method loads a Control object from a file based on a specified virtual path?
|
TemplateControl.LoadControl
|
|
What method causes databinding syntax in a template (e.g. a Container expression) to be resolved?
|
Control.OnDataBinding
|
|
What events should be provided for templated databound controls?
|
1. ItemCreated
2. ItemDataBound 3. ItemCommand (Only when buttons may be used in template) |
|
When using event bubbling in controls, how is the bubbling stopped?
|
A class that stops the bubbling must implement OnBubbleEvent() and return true from the method.
|
|
What attribute specifies how an ASP.NET server control property or event is persisted to an ASP.NET page?
|
PersistenceModeAttribute
|
|
What attribute specifies, at design time, how nested content of a server control is interpreted?
|
PersistChildrenAttribute
|
|
What designer property can be used to retrieve the control a designer is designing?
|
ComponentDesigner.Component
|