[CLOSED] Calling Static DirectMethod defined in an UserControl

  1. #1

    [CLOSED] Calling Static DirectMethod defined in an UserControl

    Hi,

    I have a static DirectMethod which is defined in an UserControl. The UserControl's attribute is set as "[DirectMethodProxyID(Alias="CWC", IDMode=DirectMethodProxyIDMode.Alias)]". When i call this method from javascript the method is showing in "Ext.net.DirectMethods.CWC" but when the method is executed i get the following exception.

    System.Exception: The static DirectMethod '' has not been defined. at Ext.Net.DirectRequestModule.ProcessRequest(HttpApp lication app, HttpRequest request)

    Any suggestions on this?

    Regards,
    Manoj.
    Last edited by Daniil; Aug 08, 2011 at 1:29 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Unfortunately, a static DirectMethod must be defined inside Page class only.
    http://forums.ext.net/showthread.php...ll=1#post51877

Similar Threads

  1. Replies: 13
    Last Post: May 16, 2011, 1:26 PM
  2. [CLOSED] Difference between DirectMethod , DirectEvent, Static DirectMethod
    By syllabusarq in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 01, 2011, 11:37 AM
  3. [CLOSED] DirectEvent or static DirectMethod?
    By macap in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 23, 2010, 12:31 PM
  4. [CLOSED] Static DirectMethod
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 21
    Last Post: Jun 03, 2010, 12:42 AM
  5. [CLOSED] [1.0] DirectMethod - Page . UserControl . UserControl
    By Patrick in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 25, 2010, 9:33 AM

Posting Permissions