Hi all,
I currently have webapp that deal with a registration process.
I have an interface called User which has the methods to get Values from the implemented userimpl class as well as methods to add and load the user
i.e.
interface IUser
{
bool save();
string getLastName();
string getFirstName();
....
}
public class UserImpl : IUser
{
private string lastName;
private string firstName;
public UserImpl(string inLastName, string inFirstName)
{
setFirstName(inFirstName);
setLastName(inLastName);
}
public bool save()
{
return DataLayer.InsertUser("sp_InsertUser",lastName, firstName);
}
}
Now i have the main form which allows the user to input all the registration fields.
Once they hit submit i create a class from the given parameters (along with some validation) and then save the object to the database.
What i would like to do instead is redirect the user to a preview page which will display all of the fields they input and then allow them to hit submit which will do the database insert.
As of right now i figured i would still create the object on the first page and store the details in a session and then retrieve it on the second preview page and continue on from there.
Is this an ideal way to go about doing this?
What would be a better oop approach to this?
Thanks in advance