Chapter 10 Quick Reference


To

Do this

Inherit from a base class

Add the Inherits keyword on the line after the class definition, specifying the name of the class to inherit.

Render output from a control

Override the Render method of the control class from which the custom control is derived. To take advantage of the rendered output of controls such as TextBox and Label, call the Render method of the base class when you are finished rendering custom output.

Handle postbacks

Implement the IPostBackDataHandler and/or IPostBackEventHandler interfaces, and implement the methods defined by the interfaces.

Maintain state in a custom control

Store state in and retrieve state from the ViewState object in your property procedures.




Microsoft ASP. NET Programming with Microsoft Visual Basic. NET Version 2003 Step by Step
Microsoft ASP.NET Programming with Microsoft Visual Basic .NET Version 2003 Step By Step
ISBN: 0735619344
EAN: 2147483647
Year: 2005
Pages: 126

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net