Last post Jul 01, 2011 03:04 PM by EdCullen71
Jul 01, 2011 02:15 PM|EdCullen71|LINK
I have a scenario. I have to display a survey consisting of (page1.aspx, runs through page5.aspx) the very first time a user logs in, and then once the user completes it (finishes page5.aspx) he should be automatically redirected to Default.aspx, and the
next time on, the default home page should be Default.aspx. To complicate my task, I have been asked to retain the survey page (any of page1.aspx through page5.aspx) as the default home page for the first 24 hours to give the user time to complete the survey.
Basically I need to retain information about how many pages the user has completed from the survey and display from the next page (in the survey), the next time he logs in the first 24-hours. (Say for example, if the user completes page1 and page2 the very
first time he logs in, then if the second login is within 24hrs, he should be presented with page3. If it is after 24hrs, I should present him with Default.aspx) After first 24-hours, irrespective of whether the user completed the survey or not, he should
be redirected to Default.aspx. I have no clue how to proceed.
Any ideas/suggestions would be greatly appreciated.
P.S: I am new to .NET so I am not sure if this is the right section to ask this question. If not, please redirect me to the appropriate section.
Jul 01, 2011 02:30 PM|princeG|LINK
This is manual process or you can say tricky.
first you need to store in database IsSurvey bit true or false
default values should be false
when you logged-in, then you need to check what is the IsSurvey status. if false means Use not complete the survey. and redired user to Servey page.
and also check you database has all step of survey(step1 to step 5).
and you also need to check isStep1 is complete, IsStep2 is complete. If any bit value return false, means you need to redirect user to that page instead to default page
this is only way to handle it
Jul 01, 2011 03:04 PM|EdCullen71|LINK
Hmm! That sounds doable! Thanks