I am developing an application for online examination
system. It is 3 - tier application. I know how PL, BLL and DAL layers interact
with each other but only one way. I
meant, PL called BLL and BLL called DAL. However, recently I came across a scenario
where I want to transfer a data from DAL to BLL and from BLL to PL or may be
directly from DAL to PL.
I have "retrieve.aspx" page to reset forgotten password which
contains a textbox and button. This page will ask Email address from user and
when user hit the "Go" button, application will hit the database. If it finds
the entered email address into a database, it will redirect to "questionanswer.aspx".
"questionanswer.aspx" contains a label, textbox and submit
button. In the page load event of "questionanswer.aspx", application will show
a security question (a fetched question from database related to entered email
address) and ask user to fill an answer. On the click event of submit button,
application again hit the database and authenticate the user, if the answer is
correct it will redirect the user to password reset page.
I can go up to fetching a question from database. But I do
not know where to store it in DAL and how to pass it to PL where I can assign
it to lable.text.
I have 3 classes Users.cs, UserBAL.cs and UserDAL.cs.
View Complete Post