[CLOSED] MVC - Direct Method

  1. #1

    [CLOSED] MVC - Direct Method

    In Ext, what is the equivalent syntax for MVC as when calling a direct method in ASP.NET?

    function handleContinue()
                {
    
                    var markets = #{grdQuoteMarketList}.getRowsValues();
                    Ext.net.DirectMethods.#{ucMarketList}.ValidateMarketSelection(markets, {
                        success: function (result) {
                            if (result) {
                                generateDocs();
                            }
                        }, 
                        failure: function(response, options) 
                        {
                            directEventFailure("Unable to validate market selection", response, 'Validate market selection:  ');
                        }
                    });          
    
                };
    Last edited by Daniil; Jun 21, 2012 at 9:49 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Server side DirectMethods handler are designed to be used in the Web Forms context.

    It should not be used in MVC.

    In MVC you can use
    Ext.net.DirectMethod.request(config);
    to call controller actions.

    The same way as the Web Service is called here:
    https://examples2.ext.net/#/Events/D...ds/WebService/

Similar Threads

  1. [CLOSED] Output Cache issue with Direct Method / Direct Event
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 18
    Last Post: Mar 01, 2013, 5:03 AM
  2. [CLOSED] Direct Method in UX
    By dev in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 30, 2012, 12:32 PM
  3. Direct method and direct event over SSL?
    By dimitar in forum 1.x Help
    Replies: 0
    Last Post: Oct 08, 2011, 8:09 PM
  4. [CLOSED] Access with Direct Method
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 23, 2011, 4:45 PM
  5. [CLOSED] Direct Method only working once
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 07, 2011, 9:09 AM

Tags for this Thread

Posting Permissions