I am using a menu control to track a 5 step process where the user views 5 web pages. The menu corresponds to the 5 pages but I am using the menu as "step 1", "step2", etc..
So when the user views a page, I want the corresponding menu graphic to show as completed. This would mean that by the time they reach step 5/page 5 ...all of the menu steps will show the completed graphic for the menu item
Every time the user views one of the pages, I was just going to write a bool to a cookie. Here is an example:
public Boolean Step1Status
if (HttpContext.Current.Request.Cookies["Step1"] != null)
//Write Cookie & Timeout
HttpCookie StepStatus = new HttpCookie("Step1");
StepStatus.Value = value.ToString();
Then I was going to write an if statement that checks to see if each of the steps exist and for the ones that do exist, change:
currentItem.Selected = true;
How do I get each of the menu items so I can set its selected value to true?
Also, is this over complicating things or is there a better way to track the pages the user has viewed and change the menu item to a different graphic?
Thanks for any advice.