Beispiel #1
0
        //TRYIT FOR REQUIRED SERVICE #2
        protected void GetStockQuoteBtn_Click(object sender, EventArgs e)
        {
            StockRelatedWebServices.Service1Client proxy = new StockRelatedWebServices.Service1Client();
            string stockSymbol = StockSymbolTextInput.Value;

            // Use the 'client' variable to call operations on the service.
            DisplayStockPriceLbl.Text = String.Format("{0:C}", proxy.GetStockQuote(stockSymbol));
            // Always close the client.
            proxy.Close();
        }