Hi
I have a site with a menu control and a iFrame on it. When the user clicks on one of the menu items a different page loads in the iFrame.
I want to use the "Item Click" event of the Menu control to set a Session state variable so I can see what items was clicked, but it won't work. It's like the event is never executed before the new page is loaded in the iFrame.
How can I get the event to run before the new page is loaded?
Thanks
Loading
Anna HawksPosted Aug 13, 2008, 11:29 AM
Anna HawksPosted Aug 13, 2008, 11:27 AM
1. The last time I couldn't find a Session variable I was CERTAIN I had, I didn't have enable session state set to true.
2. Another thought is that it might not be set before the other event fires
3. Are you sure all the names that reference the Session variable are the same including capitol letters and exact spelling (I depend on Intellisense a LOT, so I'm forever mistyping the Session Variable names).
4. If all else fails, I would put some temporary variables and breakpoints in during debug to see when the Session Variable loses its value.
HTH
NeCroFirePosted Aug 13, 2008, 2:19 AM
Then in the Item Cleck event I just add the Value to a Session variable. As soon as the other page loads I call the session variable to see if it actually added anything. Then the page complains about the Session Variable... "not set to an instance of an object...".
But if I try the same without the iFrame it works.
Why I want to di this:
I have a few pages in which my client's clients can fill in Details about the item they want to add to there insurance or Amend and item. The add and amend is almost the same and thus I want to try and use the same page for both. But I need to know what was clicked so that I know if the user wants to add or amend.
I hope it makes sense.
Thanks
Anna HawksPosted Aug 12, 2008, 4:37 PM