Como obtenho a saída HTML de um UserControl no .NET (C #)?
Se eu criar um UserControl e adicionar alguns objetos a ele, como posso pegar o HTML que ele renderizaria?
ex.
UserControl myControl = new UserControl();
myControl.Controls.Add(new TextBox());
// ...something happens
return strHTMLofControl;
Gostaria apenas de converter um UserControl recém-construído em uma string de HTML.