1. Webservice方法
    [WebMethod(Description = "从服务器返回一个字符串")]
    
public string HelloWorld(string input)
    {
        
return "Hello World," + input;
    } 
2. 调用 

3. 效果
 txtArea 中显示 hello word + 输入的字符串;

相关文章: