Building Simple Web Part(With HTML)
protected override void RenderContents(HtmlTextWriter writer)
// Add a webpart (Don't select Sandboxed or Visual WebPart)
//Override CreateChildControl method
{
writer.RenderBeginTag(HtmlTextWriterTag.H2);
writer.Write("Hello, world");
writer.RenderEndTag();
}
// Add a webpart (Don't select Sandboxed or Visual WebPart)
//Override CreateChildControl method
{
writer.RenderBeginTag(HtmlTextWriterTag.H2);
writer.Write("Hello, world");
writer.RenderEndTag();
}
Comments
Post a Comment