protected void btnLogin_Click(object sender, EventArgs e) { CADonorRegisterServiceClient crsc = new CADonorRegisterServiceClient(); int key = crsc.Login(txtUserName.Text, txtPassword.Text); if (key != 0) { lblResult.Text = "Welcome"; Session["userkey"] = key; } else { lblResult.Text = "Invalid Login"; } }