Server controls can enable Web applications to easily access and use the capabilities of Web browsers and to optimize their user experience without the added complexity of client-side programming. Server controls offer a mechanism for encapsulating client-side behavior and making it available for use across an application. The HtmlEditor control we implemented in this chapter enables the entry of formatted text and works best on Internet Explorer 5.5 and later. However, this control preserves its core functionality on other browsers, without requiring any additional logic from the page developer. The HtmlEditor control also illustrates the general implementation pattern that applies to all server controls that incorporate client-side behavior into their feature set. |