e.NextPage takes the Name of the page. If you have two pages with the same name (which can happen -- the designer's not that smart), then you might run into trouble.
Without seeing more of your code, I can't really diagnose the problem. Sorry.
You could, I guess, change the code to take a Type, and then it could look for the first page of that type.
e.NextPage
e.NextPage takes the Name of the page. If you have two pages with the same name (which can happen -- the designer's not that smart), then you might run into trouble.
Without seeing more of your code, I can't really diagnose the problem. Sorry.
You could, I guess, change the code to take a Type, and then it could look for the first page of that type.