Exemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ServiceReference1.WebService1SoapClient ser = new ServiceReference1.WebService1SoapClient();
            Boolean res = ser.createPost(TextBox1.Text, TextBox2.Text, TextArea1.InnerText);

            if (res)
            {
                Label4.Text = "Created the post successfully";
            }
            else
            {
                Label4.Text = "We are facing an error while creating the post. Please try again after some time!";
            }
        }
Exemplo n.º 2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ServiceReference1.WebService1SoapClient ser = new ServiceReference1.WebService1SoapClient();
            Boolean check = ser.validateUser(TextBox1.Text, TextBox2.Text);

            if (check)
            {
                Response.Redirect("createpost.aspx");
            }
            else
            {
                Label1.Text = "Invalid Login Details! Please try again";
            }
        }