html5中文学习网

您的位置: 首页 > 网络编程 > ASP.NET » 正文

.net compact framework 加 web service的演练._.NET教程_编程技术

[ ] 已经帮助:人解决问题
web
具体是这样的:

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;

}

nQYHTML5中文学习网 - HTML5先行者学习网
nQYHTML5中文学习网 - HTML5先行者学习网
(责任编辑:)
推荐书籍
推荐资讯
关于HTML5先行者 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助