最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
.net compact framework 加 web service的演练.
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
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;
}
-
下一个: 在WEB程序中设置个性化,容错提示窗口
相关文章
- .Net反向代理组件Yarp用法介绍 10-10
- .NET使用YARP通过编码方式配置域名转发实现反向代理教程 10-10
- .Net中Task Parallel Library的基本用法介绍 10-10
- .NET Core Dapper操作mysql数据库的实现教程 05-06
- 易语言给组件上加载图片方法步骤 12-26
- Asp.Net Core使用SignalR进行服务间调用方法示例 12-24