Go Back   Access World Forums > Apps and Windows > Web Design and Development > ASP and ASP.NET

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Old 01-16-2006, 01:42 PM   #1
Sergeant
Someone's gotta do it
 
Join Date: Jan 2003
Location: Wrightstown, NJ
Posts: 638
Thanks: 0
Thanked 1 Time in 1 Post
Sergeant is on a distinguished road
Web.Sitemap...

My "Organization" page has a datalist control that lists the sections in my organization (from a database).
I plan to build a hyperlink into each section title that will open a staffdirectory.aspx page that will list the employees and contact info. The link will be like "staffdirectory.aspx?sectionID=1".
I only have one staffdirectory page...how do I use a menu with the Web.Sitemap file, and also account for there being a changeable list of sections?

Sergeant is offline   Reply With Quote
Old 01-16-2006, 03:38 PM   #2
Kodo
"The Shoe"
 
Kodo's Avatar
 
Join Date: Jan 2004
Location: Syracuse NY
Posts: 707
Thanks: 0
Thanked 1 Time in 1 Post
Kodo is on a distinguished road
Send a message via MSN to Kodo
are the sections stored in the db?
__________________
Message boards: The only place where multiple personality disorders are treated with a "welcome" post.
Kodo is offline   Reply With Quote
Old 01-16-2006, 05:14 PM   #3
Sergeant
Someone's gotta do it
 
Join Date: Jan 2003
Location: Wrightstown, NJ
Posts: 638
Thanks: 0
Thanked 1 Time in 1 Post
Sergeant is on a distinguished road
Yes, for future flexibility. For menu purposes, some pages are fixed, and others use querystring.

Sergeant is offline   Reply With Quote
Old 01-16-2006, 07:07 PM   #4
Kodo
"The Shoe"
 
Kodo's Avatar
 
Join Date: Jan 2004
Location: Syracuse NY
Posts: 707
Thanks: 0
Thanked 1 Time in 1 Post
Kodo is on a distinguished road
Send a message via MSN to Kodo
ready to learn about classes and objects?
What I would do is pull the data from the database, populate a class that deserializes to an xml document (all in memory) and then save that xml document to the file system. You would do this everytime you added a section so it would be more or less a function that happens when new sections are added. You don't want to load the xml from the db like that all the time because the changes would probably far and few between aside from an extra hit on the db,server and network traffic.

Refer to my samples for serialization info. Note that the Xmldocument object in .net has a .save() method so you can save it to a path.
__________________
Message boards: The only place where multiple personality disorders are treated with a "welcome" post.
Kodo is offline   Reply With Quote
Old 01-16-2006, 07:54 PM   #5
Sergeant
Someone's gotta do it
 
Join Date: Jan 2003
Location: Wrightstown, NJ
Posts: 638
Thanks: 0
Thanked 1 Time in 1 Post
Sergeant is on a distinguished road
Thanks mate, I think that's just what I need.
I shall look into it tomorrow.
GoodNight

Sergeant is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump




All times are GMT -8. The time now is 06:34 PM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Sponsored Links

How to advertise

Media Kit


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World