[1.3]How to prevent DirectMethod use POST

  1. #1

    How to prevent DirectMethod use POST

    Hi all, I use the follow methods to prevent this DirectMethods call as a "POST", bug firebug shows it always a post request, with a lot of viewstate info.

    First:
    Ext.net.DirectMethods.UpdateXX( param1, {
        method : 'get',
        success: function( result ) {
        }
    } );
    Second:(.cs file)
    [DirectMethod( Method = HttpMethod.GET )]
    public DirectResponse UpdateXX( int param1 )
    {
        ......
    }



    Is there some thing wrong with my code or some other way to do this?
    Last edited by firebank; Apr 08, 2012 at 4:17 AM.
  2. #2
    It seems i found the reason: in this page i used a <ext:FileUploadField>, maybe it needs the page to do POST instead of GET.
  3. #3
    You can set Type="Load" to prevent form submiting (and prevent POST)
  4. #4
    It works. This is the same as Store's property, but i don't make any connection between them.
    I'll learn more about ext and coolite.
    Thanks Vladimir. :-)

Similar Threads

  1. Replies: 0
    Last Post: Aug 14, 2012, 2:54 PM
  2. Replies: 0
    Last Post: Aug 14, 2012, 2:48 PM
  3. Prevent multiple calls to DirectMethod
    By glenh in forum 1.x Help
    Replies: 0
    Last Post: May 03, 2012, 12:00 AM
  4. Replies: 2
    Last Post: May 17, 2010, 5:13 AM
  5. Replies: 3
    Last Post: Jan 13, 2010, 3:07 AM

Tags for this Thread

Posting Permissions