|
-
xml and asp
Hi,
Am new to xml and asp. I would like to display results from an xml file. I would like to have 3 drop down list with menu items gereated from the xml file. when a user selects the 1 list, it populates the 2nd with items associated with the first and when 2 is seleted it is populates with items associated with 1 and 2. When a button is clicked the result would be displayed in a table format.
Below is a xml file that I have created.
<Root>
<Portals>
<Portal>
<PortalName>Corporate Services</PortalName>
<PortalCode>2</PortalCode>
<Year>
<YearName>2005</YearName>
<Report RptID="1">
<Month>January</Month>
<Display>
<url>documents/webtrends/corp/2005/corpjan05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="2">
<Month>February</Month>
<Display>
<url>documents/webtrends/corp/2005/corpfeb05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="3">
<Month>March</Month>
<Display>
<url>documents/webtrends/corp/2005/corpmar05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="4">
<Month>April</Month>
<Display>
<url>documents/webtrends/corp/2005/corpapr05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="5">
<Month>May</Month>
<Display>
<url>documents/webtrends/corp/2005/corpmay05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="6">
<Month>June</Month>
<Display>
<url>documents/webtrends/corp/2005/corpjun05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="7">
<Month>July</Month>
<Display>
<url>documents/webtrends/corp/2005/corpjul05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="8">
<Month>August</Month>
<Display>
<url>documents/webtrends/corp/2005/corpaug05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="9">
<Month>September</Month>
<Display>
<url>documents/webtrends/corp/2005/corpsept05.pdf</url>
<name>Download</name>
</Display>
</Report>
</Year>
<Year>
<YearName>2004</YearName>
<Report RptID="8">
<Month>August</Month>
<Display>
<url>documents/webtrends/corp/2004/corpaug04.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="9">
<Month>September</Month>
<Display>
<url>documents/webtrends/corp/2004/corpsept04.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="10">
<Month>October</Month>
<Display>
<url>documents/webtrends/corp/2004/corpoct04.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="11">
<Month>November</Month>
<Display>
<url>documents/webtrends/corp/2004/corpnov04.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="12">
<Month>December</Month>
<Display>
<url>documents/webtrends/corp/2004/corpdec04.pdf</url>
<name>Download</name>
</Display>
</Report>
</Year>
</Portal>
<Portal>
<PortalName>Education, Libraries and Art</PortalName>
<PortalCode>5</PortalCode>
<Year>
<YearName>2005</YearName>
<Report RptID="7">
<Month>July</Month>
<Display>
<url>documents/webtrends/ela/2005/elajul05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="8">
<Month>August</Month>
<Display>
<url>documents/webtrends/ela/2005/elaaug05.pdf</url>
<name>Download</name>
</Display>
</Report>
<Report RptID="9">
<Month>September</Month>
<Display>
<url>documents/webtrends/ela/2005/elasept05.pdf</url>
<name>Download</name>
</Display>
</Report>
</Year>
</Portal>
</Portals>
</Root>
What I would like for drop down list is:
Portal -> Year -> Month Search Button.
result in a table format:
coproprat -> 2005 -> January -> download(link)
Please help.
Thanks
Similar Threads
-
Replies: 5
Last Post: 01-10-2003, 08:39 PM
-
By Andrew \(BTClick\) in forum XML
Replies: 1
Last Post: 11-08-2002, 06:15 PM
-
By David Rancour in forum XML
Replies: 4
Last Post: 04-30-2001, 03:40 PM
-
Replies: 1
Last Post: 04-09-2001, 12:27 AM
-
By Nicholas Barboutis in forum XML
Replies: 0
Last Post: 10-19-2000, 11:52 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks