当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > 今天完成了.net compact framework 加 web service的演练.

ASP.NET
ASP.NET 打造互联网未来空间站(3)
ASP.NET 打造互联网未来空间站(4)
Asp.net+Xml开发网络硬盘
ASP.NET中树形图的实现
ASP.NET中Cookie编程的基础知识(1)
ASP.NET中Cookie编程的基础知识(2)
ASP.NET中Cookie编程的基础知识(3)
ASP.NET中Cookie编程的基础知识(4)
ASP.NET中Cookie编程的基础知识(5)
ASP.NET中Cookie编程的基础知识(6)
ASP.NET中Cookie编程简明参考
ASP.NET中数据库的操作初步(1)
ASP.NET中数据库的操作初步(2)
ASP.NET中数据库的操作初步(3)
最佳ASP.NET编程习惯
Microsoft .NET 框架常见问题(一)
Microsoft .NET 框架常见问题(二)
用Visual C#打造个性化的IE浏览器
.NET Compact Framework的强大二维图形引擎
VB.NET如何在没有.NET框架的机器上运行

ASP.NET 中的 今天完成了.net compact framework 加 web service的演练.


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 89 ::
收藏到网摘: n/a


具体是这样的:
invoke the web service of http://samples.gotdotnet.com/quickstart/aspplus/samples/services/MathService/CS/MathService.asmx?WSDL
which service privided the math mothd such as add/sub/mulite/div.
I invoke the mothd in the win ce with compact framework,
ye,the result is out at faniliy.I am happy now.
some source followed :
switch (comboBox1.SelectedItem.ToString())
{
case "+":
textBox3.Text
= MathService.Add(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
case "-":
textBox2.Text
= MathService.Subtract(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
case "*":
textBox2.Text
= MathService.Multiply(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();

break;
case "/":
textBox2.Text
= MathService.Divide(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString(); break; }