Can anyone give me some advice on creating a clientside JavaScript list from an ASP.Net filtered Dataview?
I have a dataset with 2 tables, one for the navigation MainMenuItems and another for the SubMenuItems relating to those MainMenuItems.
I am using a Repeater to bind the MainMenuItems to make a navigation system but when it comes to the SubMenuItems I can only bind them with a page reload. I want to be able to view the SubMenuItems on rolling over the MainMenuItems.
My idea is to sort the SubMenuItems into a ClientSide JavaScript list which I can then access using JavaScript from within my page.
How would I do this?
Thanks in advance,
Chris
I have a dataset with 2 tables, one for the navigation MainMenuItems and another for the SubMenuItems relating to those MainMenuItems.
I am using a Repeater to bind the MainMenuItems to make a navigation system but when it comes to the SubMenuItems I can only bind them with a page reload. I want to be able to view the SubMenuItems on rolling over the MainMenuItems.
My idea is to sort the SubMenuItems into a ClientSide JavaScript list which I can then access using JavaScript from within my page.
How would I do this?
Thanks in advance,
Chris