protected void btnLogin_Click(object sender, EventArgs e) { //instantiate the service RegisterLoginServiceReference.VenueRegisterLoginClient vrlc = new RegisterLoginServiceReference.VenueRegisterLoginClient(); //call the method int key = vrlc.Login(txtVenueLoginPasswordPlain.Text, txtVenueLoginUserName.Text); //check results if (key!=0) { Session["VenueKey"] = key; lblResult.Text = "You have successfully logged in"; } else { lblResult.Text = "Login failed, please try again"; } }
protected void btnLogin_Click(object sender, EventArgs e) { //instantiate the service RegisterLoginServiceReference.VenueRegisterLoginClient vrlc = new RegisterLoginServiceReference.VenueRegisterLoginClient(); //call the method int key = vrlc.Login(txtVenueLoginPasswordPlain.Text, txtVenueLoginUserName.Text); //check results if (key != 0) { Session["VenueKey"] = key; lblResult.Text = "You have successfully logged in"; } else { lblResult.Text = "Login failed, please try again"; } }