Microsoft Federal Developer Evangelist Marc Schweigert demonstrates how ASP.NET "Atlas" abstracts the complexities of XMLHTTP programming by allowing you to make web service calls from client script.The source code for this screencast is available here. Don't forget to check out the Federal D&PE blog at http://blogs.msdn.com/federaldev/.
Highlight the js or markup that you want to turn into a "reusable chunk of text," left click and drag it over to the toolbox. You now have a new toolbox item. You can then right click the item an rename it to something more memorable.-Marc