protected void Button1_Click(object sender, EventArgs e) { Myservice.Service1Client proxy = new Myservice.Service1Client(); string[] a = proxy.WsOperation(TxtUrl.Text); for (int i = 0; i < a.Length; i++) { TxtResult.Text = TxtResult.Text + Environment.NewLine + a[i]; } }
protected void Button1_Click(object sender, EventArgs e) { Myservice.Service1Client proxy = new Myservice.Service1Client(); string[] a = proxy.WeatherService(Txtzip.Text); if (a != null) { Txtweather.Text = a[0]; for (int i = 1; i < a.Length; i++) { Txtweather.Text = Txtweather.Text + Environment.NewLine + a[i]; } } else { Txtweather.Text = "Cant't find"; } }