Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking to build a menu based on customer.

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I will have a database table that has checked off which pages are available to the user. I would like to do a .Net page that would build a menu dynamically based on that table. I am sure there is an easier way than coding out all the connections, building the code that reads it, and then puts it up there. Any sample code you can point me to?
 
My suggestion would be to have a connection get the info on your database (can't excape this) and create an xml file from it.
From there, you can use the xml file to create your menu, wherever you are, on any page. Probably through a nice little custom menu tool that you create.

As for coding examples, I'm sure you can find a load of them out there. Just spend some minutes with a search engine.. et voila!

Good luck! Daren J. Lahey
Just another computer guy...
 
Not to be rude but I believe that is what being a programmer is about. Creating code! From what your post it shouldn't be terribly hard. Make a connection fill a dataset. Fill a datagrid or data table. Configure the grid/table to display links. Voila That'l do donkey, that'l do
[bravo] Mark
 
<whispers>DataList... or a repeater control... Daren J. Lahey
Just another computer guy...
 
Don't fully understand the repeater control... Having trouble migrating from ASP and Recordsets to .Net and Datasets... confusion... misconseptions... NEWBIE.
 
One question at a time.

What don't you understand about DataSets? Daren J. Lahey
Just another computer guy...
 
data table / data list
give me a break I am having a poor day. That'l do donkey, that'l do
[bravo] Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top