Hi,

What is the difference between response.writing a control onto a page, versus creating a WCC that has a render method, and doing something like this....

code Code:
  1. Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter)
  2.  
  3.         output.WriteBeginTag("input type = 'button'")
  4.         output.WriteAttribute("value", "close me")
  5.         output.WriteAttribute("onclick", "javascript: closeme();")
  6.         output.WriteEndTag("input")
  7.  
  8.     End Sub