Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 183425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:06:49+00:00 2026-05-11T15:06:49+00:00

I have the XML given below. From this XML, in an ASPX page with

  • 0

I have the XML given below. From this XML, in an ASPX page with an ASCX control that will contain the data, I want a drop-down on top with option ‘GMAT’, ‘GRE’, ‘LSAT’, and ‘MCAT’. And when I select GMAT below it will show only GMAT brochure and same with others.

Can you please provide some code for this?

<?xml version='1.0' encoding='utf-8'?> <root>     <data>         <ImageId>tcm556662</ImageId>         <ImageURL>/Images/2008_gmat_brochure_uk_thumb_tcm55-7311.gif</ImageURL>         <ImageTitle>GMAT Brochure</ImageTitle>         <Description>&lt;p xmlns='http://www.w3.org/1999/xhtml'&gt;Classroom                      and Online Coursegrams.&lt;/p&gt;</Description>         <FilePath>/Images/gmat_brochure_uk_tcm55-8064.pdf</FilePath>     </data>     <data>         <ImageId>tcm5510981</ImageId>         <ImageURL>/Images/practice-test-image_tcm55-10980.JPG</ImageURL>         <ImageTitle>GMAT Problem Solving Questions and Answers</ImageTitle>         <Description>Download Kaplan's GMAT Problem So to each question.</Description>         <FilePath>/Images/gmat-sample-questions_tcm55-10979.pdf</FilePath>     </data>     <data>         <ImageId>tcm5511066</ImageId>         <ImageURL>/Images/practice-test-image_tcm55-10980.JPG</ImageURL>         <ImageTitle>GMAT Sentence Correction Practice Questions</ImageTitle>         <Description>&lt;p xmlns='http://www.w3.org/1999/xhtml'&gt;Tick the box to                      download GMsee how you might do on this section of the GMAT                      exam.&lt;/p&gt;</Description>         <FilePath>/Images/gmat-sentence-correction_tcm55-11065.pdf</FilePath>     </data>     <data>         <ImageId>tcm556663</ImageId>         <ImageURL>/Images/gre_brochure_thumb_tcm55-7315.gif</ImageURL>         <ImageTitle>GRE Brochure</ImageTitle>         <Description>&lt;p xmlns='http://www.w3.org/1999/xhtml'&gt;Courses and                      Tutoring for the Grprograms&lt;/p&gt;</Description>         <FilePath>/Images/gre-brochure_tcm55-8065.pdf</FilePath>     </data>     <data>         <ImageId>tcm5511219</ImageId>         <ImageURL>/Images/practice-test-image_tcm55-10980.JPG</ImageURL>         <ImageTitle>GRE Quantitative Questions Answers and Explanations</ImageTitle>         <Description>Download the answers and exp with the correct answer. Tick                     the box and click download now to start the process.</Description>         <FilePath>/Images/gre-quantitative-practice-questions_tcm55-11214.pdf</FilePath>     </data>     <data>         <ImageId>tcm5511220</ImageId>         <ImageURL>/Images/practice-test-image_tcm55-10980.JPG</ImageURL>         <ImageTitle>GRE Sentence Completion Practice Question Answers and Explanations</ImageTitle>         <Description>&lt;p xmlns='http://www.w3.org/1999/xhtml'&gt;Complete the                     sentence on the download now button to see how you did.&lt;/p&gt;</Description>         <FilePath>/Images/gre-sentence-completions_tcm55-11213.pdf</FilePath>     </data>     <data>         <ImageId>tcm558073</ImageId>         <ImageURL>/Images/lsat_brochure_thumb_tcm55-7316.gif</ImageURL>         <ImageTitle>LSAT Brochure</ImageTitle>         <Description>Courses and Tutoring for the Law School Admission US law schools</Description>         <FilePath>/Images/lsat-brochure_tcm55-8066.pdf</FilePath>     </data>     <data>         <ImageId>tcm5511275</ImageId>         <ImageURL>/Images/practice-test-image_tcm55-10980.JPG</ImageURL>         <ImageTitle>LSAT Comparative Reading Practice Questions Answers and Explanations</ImageTitle>         <Description>Try answering the LSAT Comparative Reading and click on                      download now.</Description>         <FilePath>/Images/comparative-reasoning_tcm55-11269.pdf</FilePath>     </data>     <data>         <ImageId>tcm5511281</ImageId>         <ImageURL>/Images/practice-test-image_tcm55-10980.JPG</ImageURL>         <ImageTitle>LSAT Reading Comprehension Practice Questions Answers and Explanations</ImageTitle>         <Description>&lt;p xmlns='http://www.w3.org/1999/xhtml'&gt;Read the passage                      and try the questions as now Lion Practice Questions Answers                      and Explanations.&lt;/p&gt;</Description>         <FilePath>/Images/lsat-reading-comprehension_tcm55-11280.pdf</FilePath>     </data>     <data>         <ImageId>tcm558074</ImageId>         <ImageURL>/Images/mcat_brochure_thumb_tcm55-7317.gif</ImageURL>         <ImageTitle>MCAT Brochure</ImageTitle>         <Description>Courses and Tutoring for the Medical College Admission Test                      (MCAT)</Description>         <FilePath>/Images/mcat-brochure_tcm55-8067.pdf</FilePath>     </data>     <data>         <ImageId>tcm5511278</ImageId>         <ImageURL>/Images/practice-test-image_tcm55-10980.JPG</ImageURL>         <ImageTitle>MCAT Biological Sciences Practice Questions Answers and Explanations</ImageTitle>         <Description>Have you wri download now to find out how you've done.</Description>         <FilePath>/Images/mcat-biological-sciences_tcm55-11271.pdf</FilePath>     </data> </root> 

Below is the Function for reading the XML file:

private DataSet GenerateDatasetFromXml()     {         string xmlFile = string.Empty;         DataSet xmlFileData = new DataSet();         string selItem = string.Empty;         xmlFile = @Server.MapPath('~/' + ConfigurationManager.AppSettings['BrochureXml'].ToString());         string sfinalString = '';         hdnIds.Value = '';         try         {             if (File.Exists(xmlFile))             {                 xmlFileData.ReadXml(xmlFile);             }         }         catch (Exception ex)         {             throw ex;         }          return xmlFileData;      } 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:06:50+00:00Added an answer on May 11, 2026 at 3:06 pm

    I want a dropdown on top with option ‘GMAT’, ‘GRE’, ‘LSAT’, ‘MCAT’

    Right now, you could only select those items based on string-parsing the ImageTitle and finding substring in it – less than optimal…

    If there’s any chance at all, I’d recommend adding a tag (or whatever you want to call it) to your data, something like this:

    <data>   <ImageId>tcm556662</ImageId>   <ImageURL>/Images/2008_gmat_brochure_uk_thumb_tcm55-7311.gif</ImageURL>   <ImageTitle>GMAT Brochure</ImageTitle>   <Type>GMAT</Type>   <Description>&lt;p xmlns='http://www.w3.org/1999/xhtml'&gt;Classroom and Online Coursegrams.&lt;/p&gt;</Description>   <FilePath>/Images/gmat_brochure_uk_tcm55-8064.pdf</FilePath> </data> 

    That way, selecting the proper elements would be as easy a very simple XPath expression:

    XmlNodeList _list = myXmlDocument.SelectNodes('//data[Type = 'GMAT']); 

    once you have loaded your data file into an XmlDocument (or you the Linq-to-XML way, if you prefer that).

    Marc

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 116k
  • Answers 116k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Actually, you can use the jquery form plugin, just use… May 11, 2026 at 10:34 pm
  • Editorial Team
    Editorial Team added an answer There are two ways to look at this. The first… May 11, 2026 at 10:34 pm
  • Editorial Team
    Editorial Team added an answer No, it's not implicitly inlined. The compiler has no way… May 11, 2026 at 10:34 pm

Related Questions

The issue I have is as follows: My company's supplier gives us an Access
I am currently in the process of rewriting an application whereby teachers can plan
This is sort of a general question that has come up in several contexts,
I'd like to store a set of key/value pairs in the application settings of

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.