private void Button1_Click(object sender, System.EventArgs e) { //创建代理类对象 localhost.Service1 ClientProxy=new localhost.Service1(); try {//通过代码类对象访问Web服务 if (ClientProxy.ValidUser(TxtUserId.Text,txtPwd.Text)) Label1.Text="OK" ; else Label1.Text="ERROR" ; } catch(e) {throw e;} finally {ClientProxy.Dispose();} } |
新闻热点
疑难解答