AjaxFormResult && ExtraParams

  1. #1

    AjaxFormResult && ExtraParams

    Hello.

    I'm trying to access the extraparams and I can not. There are some special form of
    do?
                                <ext:Button  runat="server" Text="Test"   >
                               
                                    <DirectEvents>
                                        <Click Url="/Data/ExcelCustom/" IsUpload="true" CleanRequest="true" Method="POST"   
    
                                            Success="Ext.Msg.show({ 
                                                title             : 'Test', 
                                                msg            : action.result.extraParams.msg, 
                                                minWidth    : 200, 
                                                modal         : true, 
                                                icon            : Ext.Msg.INFO, 
                                                buttons       : Ext.Msg.OK 
                                            });">
    
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
            public AjaxFormResult ExcelCustom()
            {
                AjaxFormResult response = new AjaxFormResult();
                response.IsUpload = true;
                response.ExtraParams["msg"] = "It's a Test";
                return response;
            }
    msg : action.result.extraParams.msg -> Not working
    msg : 'TesT' -> Working

    action.result.extraParams.msg is not the correct way to access it?

    Greetings and thank you very much
  2. #2
    I answered myself.
    The correct way is to use: result.extraParams.msg

    Now you can close the thread.

    thank you very much

Similar Threads

  1. [CLOSED] AjaxFormResult [Ext.Net 2.0 Beta]
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 30, 2012, 6:20 PM
  2. Code behind ExtraParams
    By zeus in forum 1.x Help
    Replies: 2
    Last Post: Dec 20, 2011, 8:08 AM
  3. Replies: 6
    Last Post: Aug 01, 2011, 4:53 PM
  4. Combobox value with ExtraParams
    By ulrikn in forum 1.x Help
    Replies: 1
    Last Post: Feb 09, 2011, 10:46 AM
  5. How to use ExtraParams ?
    By iscript in forum 1.x Help
    Replies: 1
    Last Post: Aug 21, 2009, 7:09 AM

Posting Permissions