Nevron .NET Vision
Nevron.UI.WebForm.Controls Namespace / NWebControl Class / AsyncQueryCommandResult Event


In This Topic
    AsyncQueryCommandResult Event (NWebControl)
    In This Topic
    Occurs after a callback was processed, when collecting data for the result to be returned to the client.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("AJAX")>
    Public Event AsyncQueryCommandResult As System.EventHandler
    'Usage
     
    
    Dim instance As NWebControl
    Dim handler As System.EventHandler
     
    AddHandler instance.AsyncQueryCommandResult, handler
    [System.ComponentModel.Category("AJAX")]
    public event System.EventHandler AsyncQueryCommandResult
    Remarks
    Uset the property ResultBuilder of the event argument of type NCallbackQueryCommandResultArgs to add data sections to the result xml that will be delivered to the client. To add a image map data section manually for Ex., code like this could be used: protected void nChartControl1_AsyncQueryCommandResult(object sender, EventArgs e) { NCallbackQueryCommandResultArgs args = e as NCallbackQueryCommandResultArgs; NCallbackCommand command = args.Command; NAjaxXmlTransportBuilder resultBuilder = args.ResultBuilder; switch (command.Name) { case @"autoRefresh": // add a built-in data section that will be initialized with the cuurent image map if (!resultBuilder.ContainsImageMapDataSection()) resultBuilder.AddImageMapDataSection(this.nChartControl1); break; } }
    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