Apr 07, 2012, 10:11 AM
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:
Is there some thing wrong with my code or some other way to do this?
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.