RenderControl() public method

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
public RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
return void
示例#1
0
 private void RenderNewNoteControl(HtmlTextWriter writer)
 {
     writer.AddAttribute(HtmlTextWriterAttribute.Class, "note-new");
     writer.RenderBeginTag(HtmlTextWriterTag.Div);
     _noteNew.RenderControl(writer);
     writer.RenderEndTag();
 }