Hello,
Can anyone point me to some code which would build a dynamic vertical menu. A tree menu would be best, but any verticle drop down would do. Also, I need this to populate from a database.
By far the best I've ever seen can be found here. It supports asynchronous calls to the server via a built-in XML object that is supported by most browsers (which, by the way, is how Microsoft will be doing its "code-beside" pages in the release of Whidbey). xLoadTree does this to populate sub-trees on-demand, which is useful if you have thousands of nodes in your tree.
The only thing is, it grabs the child nodes from xml documents. So what I did was make all the nodes point to the same aspx file which queries the database and returns as an xml document by setting ContentType="text/xml" in the "Page" directive.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.