Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
wiki:user:lorenzo.soncini [2010/07/05 11:50] lorenzo.soncini |
wiki:user:lorenzo.soncini [2010/07/05 11:52] lorenzo.soncini |
||
---|---|---|---|
Line 53: | Line 53: | ||
In the webservice source code we need to add some attribute.\\ | In the webservice source code we need to add some attribute.\\ | ||
- | The first is on the class: **[System.Web.Script.Services.ScriptService]**, the webservice can be called using ASP.NET AJAX script.\\ | + | The first is on the class: **[System.Web.Script.Services.ScriptService]**, declares that the webservice can be called using ASP.NET AJAX script.\\ |
- | The second is on the method: **[System.Web.Script.Services.ScriptMethod(ResponseFormat = System.Web.Script.Services.ResponseFormat.Json)]**, the result of the webservice was in JSON format\\ | + | The second is on the method: **[System.Web.Script.Services.ScriptMethod(ResponseFormat = System.Web.Script.Services.ResponseFormat.Json)]**, declares that the result should be a standard format JSON\\ |
This is the webservice source: | This is the webservice source: |