private void cmdCall_Click(object sender, System.EventArgs e)
        {
            SoapSecurityService proxy = new SoapSecurityService();

            try
            {
                proxy.Login(txtUserName.Text, txtPassword.Text, HashAlgorithm.SHA1);
                DataGrid1.DataSource = proxy.GetEmployees();
                DataGrid1.DataBind();
                lblInfo.Text = "";
            }
            catch (Exception err)
            {
                lblInfo.Text = err.Message;
            }
        }
示例#2
0
	protected void cmdCall_Click(object sender, EventArgs e)
	{
		SoapSecurityService proxy = new SoapSecurityService();

		try
		{
			proxy.Login(txtUserName.Text, txtPassword.Text);
			GridView1.DataSource = proxy.GetEmployees();
			GridView1.DataBind();
		}
		catch (Exception err)
		{
			lblInfo.Text = err.Message;
		}

	}