Last post Aug 06, 2013 05:43 AM by sukumarraju
Aug 04, 2013 03:10 AM|Aarthibala.k|LINK
Can anyone give me a solution, i'm trying to create a Login page which allows entering LOGINID and PASSWORD, i have created a table with some 5 loginid, passwords and username. now on clicking SUBMIT button of the login page, the button_click event
should call a webservice methods, which in return should call Data Access Layer's Class Library methods and this should look into the database for validation of id password entered and should display the message "Welcome + "username" " on the login page. How
do i do this can anyone explain???
Aug 04, 2013 10:08 AM|AidyF|LINK
Aug 06, 2013 05:43 AM|sukumarraju|LINK
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.
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);
Aarthibala.kbutton_click event should call a webservice methods
//Button click event handler
//Invoke the service by passing credentials.
//redirect to login page
Sample WCF service