最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
.net compact framework 加 web service的演练.
时间:2022-07-02 11:21:33 编辑:袖梨 来源:一聚教程网
具体是这样的:
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;
}
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;
}
相关文章
- 云星穹铁道权益升级怎么玩 云崩铁权益升级活动介绍 12-03
- 以闪亮之名山中绘梦怎么玩 以闪亮之名滢然花梦套装活动介绍 12-03
- 以闪亮之名绿野梦歌礼包怎么样 以闪亮之名绿野梦歌拍照礼包介绍 12-03
- 光遇12.6有什么更新 光遇12月6日更新内容介绍 12-03
- 伍六七暗影交锋测试资格怎么获得 伍六七暗影交锋内测资格获取方法 12-03
- 无限暖暖晶莹诗集怎么样 12-03