Have you ever run across a situation where it would be nice to render an ASP.NET control as a string? For example, let's say that you had to dynamically generate a control at runtime and then embed it's HTML within a <div>. Fortunately, all ASP.NET controls expose the RenderControl() method. Don't get too excited just yet, the RenderControl() method doesn't simply return a string. Instead, the RenderControl() method takes an HtmlTextWriter as input and renders the control into it. Not so fast...