Esempio n. 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ServiceReference2.Iwcf_serviceClient s = new ServiceReference2.Iwcf_serviceClient();

            string pass = "******";

            //ServiceReference1.WebService1SoapClient obj = new ServiceReference1.WebService1SoapClient();

            s.Register(callback.namee, int.Parse(TextBox3.Text), int.Parse(TextBox2.Text), RadioButtonList1.SelectedItem.Text.ToString(), callback.emaill, pass);
            Server.Transfer("~/Main_Form.aspx");
        }
Esempio n. 2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ServiceReference2.Iwcf_serviceClient s = new ServiceReference2.Iwcf_serviceClient();


            if (TextBox1.Text != "" && TextBox2.Text != "" && TextBox3.Text != "" && TextBox4.Text != "" && TextBox5.Text != "" && TextBox6.Text != "" && RadioButtonList1.Text != "")
            {
                if (TextBox4.Text == TextBox5.Text)
                {
                    s.Register(TextBox1.Text, int.Parse(TextBox3.Text.ToString())
                               , int.Parse((TextBox2.Text).ToString()), RadioButtonList1.SelectedItem.Text.ToString()
                               , TextBox6.Text, TextBox4.Text);
                    Server.Transfer("~/Login_Form.aspx");
                }
                else
                {
                    Response.Write("<script>alert('please enter the password right')</script>");
                }
            }
            else
            {
                Response.Write("<script>alert('please enter the empty boxes')</script>");
            }
        }