in ASP.NET

Using UserControl.RenderControl()