The Artima Developer Community
Sponsored Link

.NET Buzz Forum
NSurvey - Belgian Regions

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
David Cumps

Posts: 319
Nickname: cumpsd
Registered: Feb, 2004

David Cumps is a Belgian Student learning .NET
NSurvey - Belgian Regions Posted: Feb 22, 2005 7:36 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by David Cumps.
Original Post: NSurvey - Belgian Regions
Feed Title: David Cumps
Feed URL: http://weblogs.asp.net/cumpsd/rss?containerid=12
Feed Description: A Student .Net Blog :p
Latest .NET Buzz Posts
Latest .NET Buzz Posts by David Cumps
Latest Posts From David Cumps

Advertisement
One of the standard controls of NSurvey is the Country List, which provides a dropdown list of countries. Belgium is one of these countries, but when you select Belgium, it doesn’t display the possible regions for Belgium.

This is because the region information is also implemented with the subscriber model. When the country selection changes, it publishes the selected country to the Region List which then looks up the xml file of the selected country, containing the region information. The problem was that there wasn’t a region file for Belgium. So, I looked up the Belgian regions from Microsoft Passport and created the be.xml file:

 

<?xml version="1.0" standalone="yes"?>

<NSurveyDataSource xmlns="http://www.nsurvey.org/NSurveyDataSource.xsd">

  <XmlDataSource>

    <RunTimeAnswerLabel>Region :</RunTimeAnswerLabel>

    <XmlAnswers>

      <XmlAnswer>

        <AnswerValue></AnswerValue>

        <AnswerDescription>[Select Region]</AnswerDescription>

      </XmlAnswer>     

      <XmlAnswer>

        <AnswerValue>Antwerpen</AnswerValue>

        <AnswerDescription>Antwerpen</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Vlaams-Brabant</AnswerValue>

        <AnswerDescription>Vlaams-Brabant</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Hainaut</AnswerValue>

        <AnswerDescription>Hainaut</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Liege</AnswerValue>

        <AnswerDescription>Liege</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Limburg</AnswerValue>

        <AnswerDescription>Limburg</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Luxembourg</AnswerValue>

        <AnswerDescription>Luxembourg</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Namur</AnswerValue>

        <AnswerDescription>Namur</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Oost-Vlaanderen</AnswerValue>

        <AnswerDescription>Oost-Vlaanderen</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Waals-Brabant</AnswerValue>

        <AnswerDescription>Waals-Brabant</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>West-Vlaanderen</AnswerValue>

        <AnswerDescription>West-Vlaanderen</AnswerDescription>

      </XmlAnswer>

    </XmlAnswers>

  </XmlDataSource>

</NSurveyDataSource>

Read: NSurvey - Belgian Regions

Topic: Agile Israel news and updates Previous Topic   Next Topic Topic: Congratulations to Yosi Taguri!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use