Last active
September 15, 2015 19:44
-
-
Save ChrisMoney/9e47774752ca062247c4 to your computer and use it in GitHub Desktop.
Web Service - VB.NET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'Syntax for VB | |
| '<System.Web.Script.Services.ScriptMethod()> | |
| '<System.Web.Services.WebMethod()> | |
| [WebMethod] | |
| [ScriptMethod(UseHttpGet=true)] | |
| public string MyNiftyMethod(int myint) | |
| { | |
| // ... code here | |
| } | |
| // Web Config | |
| <system.web> | |
| <webServices> | |
| <protocols> | |
| <add name="HttpGet"/> | |
| <add name="HttpPost" /> | |
| </protocols> | |
| http://mysite.com/Service.asmx/MyNiftyMethod?myint=12345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment