Nevron .NET Vision
Nevron.UI.WebForm.Controls Namespace / NClientServerTechnology Class / OnWebControlRender Method
The System.Web.UI.HtmlTextWriter object that receives the control content.


In This Topic
    OnWebControlRender Method (NClientServerTechnology)
    In This Topic
    This method is invoked from the overridden Render method of the NWebControl class. By default does nothing.
    Syntax
    'Declaration
     
    
    Public Overridable Sub OnWebControlRender( _
       ByVal output As System.Web.UI.HtmlTextWriter _
    ) 
    'Usage
     
    
    Dim instance As NClientServerTechnology
    Dim output As System.Web.UI.HtmlTextWriter
     
    instance.OnWebControlRender(output)
    public virtual void OnWebControlRender( 
       System.Web.UI.HtmlTextWriter output
    )

    Parameters

    output
    The System.Web.UI.HtmlTextWriter object that receives the control content.
    Remarks
    It is recommended that the whole implementation of this method is encapsulated in a try-catch block like this: try { // implementation } catch (Exception ex) { RememberHtmlExceptionMessage(ex); } The RememberHtmlExceptionMessage(Exception) method will store any error data and provide it later for formatted output to the client. Using the RememberHtmlExceptionMessage(Exception) method also allows to collect multiple errors' data in order to diagnose possible problems more easily.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also