using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public class SampleWebPart : WebPart
{
       public SampleWebPart()
       {
              //
              // TODO: Add constructor logic here
              //
       this.Title = "A Sample Web Part";
       }
    protected override void RenderContents(HtmlTextWriter writer)
    {
       writer.Write("This is the content area of this web part");
    }
}
