2012-02-27 8 views

答えて

1

内側document.ready

$.ajax({ 
     type: "POST", 
     url: "Service.svc/WebServiceMethodName", 
     data: JSON2.stringify({ UrParameter: UrparameterValue}),//Parameter to pass 
     contentType: "application/json; charset=utf-8", 
     dataType: "json", 
     success: function() { 
     //Do Some Stuff here 

     } 

    }) 

jsとを含めることを忘れないでください。サンプルコードです.Uは、あなたの要件として変更することができます。

関連する問題