User220959680 posted
Data Access Layer's Class Library
Implement DAL (Class library) with an operation that takes two parameters LoginId and Password, and returns True or False by checking into Table.
webservice
Note that it is feasible to implement SOAP or REST based service, REST is widely adotped.
Web Service method with parameters (LoginId and Password) calls the method from DAL and returns bool (True or False).
public bool Authenticate(LoginId, Password)
{
//call the DAL method by passing the credentails
return DAL.Authenticate(LoginId, Password);
}
button_click event should call a webservice methods
//Button click event handler
//Invoke the service by passing credentials.
if("http://serviceuri//Authenticate/username/password")
{
//authenticated
}
else
{
//redirect to login page
}
Sample WCF service