Access Webservice Method Return Values

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 773
Access Webservice Method Return Values
==================================
Webservices.cs
============

[WebMethod]
public string HelloWorld(string RecStr) {
RecStr = RecStr + " " + "Welcome";
return RecStr;
}

Test.aspx
=============
WebService web = new WebService();
string St = "";
St= web.HelloWorld("Asp.net");

Comments or Responses

Login to post response