Summary


In this chapter, you learned how to build custom controls that take advantage of client-side JavaScript. In the first section, you learned how to use the ClientScriptManager class to add JavaScript scripts to a page. You also learned how to detect browser capabilities with the HttpBrowserCapabilities object.

Next, we built three JavaScript controls. You learned how to create a NewWindowLink control that renders a button that opens a new browser window. We also created a virtual window control named the WebWindow control. Finally, we created a ClientTabs control that renders a client-side tab strip.

The final section of this chapter explored the exciting topic of AJAX. You learned how to initiate an AJAX call to the server and implement the ICallbackEventHandler interface. We also created a ComboBox that uses AJAX to retrieve matching database records from the web server with each key press.




ASP. NET 2.0 Unleashed
ASP.NET 2.0 Unleashed
ISBN: 0672328232
EAN: 2147483647
Year: 2006
Pages: 276

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