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


In This Topic
    OnWebControlRender Method (NChartAjaxTechnology)
    In This Topic
    Creates the HTML, required to display the chart image on the client and to activate the client-side AJAX JavaScript callback service.
    Syntax
    'Declaration
     
    
    Public Overrides Sub OnWebControlRender( _
       ByVal output As System.Web.UI.HtmlTextWriter _
    ) 
    'Usage
     
    
    Dim instance As NChartAjaxTechnology
    Dim output As System.Web.UI.HtmlTextWriter
     
    instance.OnWebControlRender(output)
    public override void OnWebControlRender( 
       System.Web.UI.HtmlTextWriter output
    )

    Parameters

    output
    The System.Web.UI.HtmlTextWriter object that receives the control content.
    Remarks

    If there are errors renders an HTML div with detailed error report.

    Else this method creates a div element with an id similar to "MyChartWebControl_Div" (<the id of the web control> + "_Div") and inside the div ceates an image element with an id similar to "MyChartWebControl_chartImage" (<the id of the web control> + "_chartImage"). The image element is followed by a <br /> tag in order to avoid the extra spacing, rendered by default by the browsers below an image, located as a child in a box HTML element. In addition this method renders a JavaScript block that registers the client-side AJAX callback service, associated with the web control. The client-side AJAX callback service is an instance of the NChartCallbackService client-side JavaScript class and can be obtained at client-side with the following JavaScript call: if(typeof(NChartCallbackService) != "undefined") { var cs = NChartCallbackService.GetCallbackService("MyChartWebControl"); //... } The callback service registration script is rendered outside the div element.

    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