Thursday, February 9, 2012

ASP.NET 2.0 Tree Control and Navigation Controls - General Question

Hi.
Why is it practical to have the ASP.NET navigation controls based on
XML? I would love to just use databinding and then be able to
dynamically update the navgiation menu (e.g. for a product list).
I tried to use a dropdownlist with hyperlinks for navigation (not the
main navigation -- a navigation subset) and even a listbox, but found
it very cumbersome.
The way I figure it now, is that I have to pull the data over from Sql
Server, convert it to XML, reformat into the appropriate nodes, and the
then populate the navigaiton control..
Is there an easier way to do this? What am I missing'
Thanks in advance!
-RanginaldI guess the more elegant way of doing that would be to implement a
custom site-map provider based on your data. You'd have a better luck if
you posted this on asp.net newsgroups though.
hth
Hirantha
Please reply only to the newsgroups.When posting, inclusion of SQL
(CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.
*** Sent via Developersdex http://www.examnotes.net ***

No comments:

Post a Comment