Esempio n. 1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     if (!(TextBox1.Text.Equals(" ")))
     {
         ServiceReference1.Service1Client proxy1 = new ServiceReference1.Service1Client();
         TextBox3.Text = proxy1.WordFilter(TextBox1.Text);
         TextBox1.Text = "";
     }
 }
        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {

                ServiceReference1.Service1Client filterObj = new ServiceReference1.Service1Client();  //creating Service Proxy

                TextBox2.Text = filterObj.WordFilter(TextBox1.Text);                                                              // removing the stopwords and tags and writing output on the try it web page
            }
            catch
            {
                TextBox2.Text = "Entered Input is Invalid";
            }
        }