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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 18, 2011, 6:43 AM EDT
class MyObject
{
public property1 {get;set;}
..........
......
........
public property18 {get;set;}
}
MyObject obj = new MyObject();
obj.property1 = "value1";
.............
.........
obj.property18 = "value18";
Session.Add(obj);
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 18, 2011, 6:02 AM EDT
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".
saifullah khanRank #4,887 · 320 reputationPosted Oct 18, 2011, 6:09 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 18, 2011, 6:21 AM EDT
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 khanRank #4,887 · 320 reputationPosted Oct 18, 2011, 6:39 AM EDT