Nevron .NET Vision
Nevron.UI.WebForm.Controls Namespace / NClientServerTechnology Class / OnWebControlPreRender Method
An System.EventArgs that contains the event data.
The script include files as provided by the EnumerateScriptIncludes() method.


In This Topic
    OnWebControlPreRender Method (NClientServerTechnology)
    In This Topic
    This method is invoked from the overridden OnPreRender method of the NWebControl class. The default implementation of this method registers the script files as provided by the EnumerateScriptIncludes() method.
    Syntax
    'Declaration
     
    
    Public Overridable Sub OnWebControlPreRender( _
       ByVal e As System.EventArgs, _
       ByVal scriptIncludeFiles As System.Collections.ArrayList _
    ) 
    'Usage
     
    
    Dim instance As NClientServerTechnology
    Dim e As System.EventArgs
    Dim scriptIncludeFiles As System.Collections.ArrayList
     
    instance.OnWebControlPreRender(e, scriptIncludeFiles)
    public virtual void OnWebControlPreRender( 
       System.EventArgs e,
       System.Collections.ArrayList scriptIncludeFiles
    )

    Parameters

    e
    An System.EventArgs that contains the event data.
    scriptIncludeFiles
    The script include files as provided by the EnumerateScriptIncludes() method.
    Remarks
    It is recommended that the whole implementation of this method is encapsulated in a try-catch block like this: try { // implementation base.OnWebControlPreRender(e, scriptIncludeFiles); } 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