hello
i want to create multiples registration form in two pages. at the third page i want that user review his enterd data. can somebody tells me how is it possible?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Javeed M ShaikhPosted Oct 18, 2011, 10:43 AM
class MyObject
{
public property1 {get;set;}
..........
......
........
public property18 {get;set;}
}
MyObject obj = new MyObject();
obj.property1 = "value1";
.............
.........
obj.property18 = "value18";
Session.Add(obj);
saifullah khanPosted Oct 18, 2011, 10:39 AM
Javeed M ShaikhPosted Oct 18, 2011, 10:21 AM
class Registration
{
public string Name { get; set; }
public string Address { get; set; }
// define properties here of what is needed for your page and assign these values in your page and assign then this object to your session
}
Then in your button click (this is just a snippet, you have to do actual validations and checks)
Registration regis = new Registration();
regis.Name = ScreenName.Text;
regis.Address = ScreenAddress.Text;
Session.Add(regis);
Please do not forget to mark "Accepted Answer".
saifullah khanPosted Oct 18, 2011, 10:09 AM
Javeed M ShaikhPosted Oct 18, 2011, 10:02 AM
I am assuming this is a web based application and for that you can use asp.net controls two create all the three pages. Create an object for your registration pages and on the first page along with other controls have a button to go to the next page and store your object filled data in the session on that click after the validation is success, on second page do the same and proceed to the view page where you can get the object from the session and display the data to the user.
Please do not forget to mark "Accepted Answer".