Home > Article > Web Front-end > Using JavaScript to call WebServices_javascript tips in VS2008
The tasks have been completed in the past few days, and there is nothing important. I took the time to learn the knowledge of WebServices. I find it quite interesting and not very difficult.
First, create an asp.net website using VS2008
Secondly, right-click on the project—>Add new item—>Web Service as shown below:
Two files, WebService.cs and WebService.asmx, will be generated
Add code in WebService.cs:
Default.aspx page
通过以上方法就可以轻松的调用WebService中的方法,WebService中也可以返回一个DataSet结果集。
后面还得继续学习WebService的知识。
如果大家有好的WebService学习的资料或者是网站的话,拿出来分享一下,以方便大家共同学习、交流。