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();
        }

Comments

Popular posts from this blog

How to show enlarge image when mouse hover on image or link in Asp.Net(c#) using JavaScript

StateCode and StatusCode Values for mostly used entities in Microsoft Dynamics CRM 2013

How to add custom filter lookup field based on OptionSet field selection in Dynamics CRM.

go to top image