in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

Render Method

Last post 07-03-2008 2:11 PM by TubaTech. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-03-2008 9:46 AM

    Render Method

    Somehow the RenderWebPart give me an error : No Suitable Method found to override..

    ....  pseudo ....code ...

    using System;
    using System.Data.SqlClient;
    using System.Data;
    using System.Runtime.InteropServices;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Serialization;
    using System.Configuration;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    using Microsoft.SharePoint.Utilities;

    ....... 

    public class wpUserOnline : System.Web.UI.WebControls.WebParts.WebPart // correct I assume

    protected override void RenderWebPart(HtmlTextWriter output)  // GIVES ME THE ERROR WHEN COMPILING : No Suitable method found to override...

    Platform : MOSS 07 , VS 2008 , Extension for VS 2008 SPS, VPC Enviroment.

     Any help is greatly appreciated....

     

    Thanks,

    Sf.

  • 07-03-2008 2:11 PM In reply to

    Re: Render Method

     There is no RenderWebpart Method for that type of control.  Only a Render method.

     

    public class BaseWebpart: System.Web.UI.WebControls.WebParts.WebPart
    {

    protected override void Render(HtmlTextWriter writer)
            {
                base.Render(writer);
            }

    }

Page 1 of 1 (2 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.