473,767 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

list of countries File v. Array v. HTML list

I want to get an opinion on some .aspx logic. Say for isntance you
have a user data submission form that amongst other things is
gathering STATE and COUNTRY information of which appear in a
dropdownlist.

If one is already using both an .aspx page and is using a SQLserver
database, why not just place these two lists into a table instead of
an array (common in simple HTML pages using CGI) for the STATES and an
awefully-long-often-changing COUNTRY list that is still prevalent in
HTML pages.

Speaking of which, isn't it true that a list of countries in HTML has
to be laboriously edited when sitching to XHTML?

What are the advantages and disadvantages anybody wants to chime in
on. I set up one today using SQL tables and it works fine, especailly
since tomorrow my PM wants another field set up for national capitals!
Forunately all I have to do is add a field and parse/query a flat file
I found on the web in the format of ... Finland,Helsink i

Anyone?

Jun 18 '07 #1
1 2359
I guess the only consideration is that its pretty much a fixed list of
data, countires (and cities) don't appear that often - so whatever appraoch
you decide to sue for storing the data dont keep loading the data from the
DB or File. Either cache it or stick it into the app object and load it
once into an array you can use over and over.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

"slinky" <ca************ ***@yahoo.comwr ote in message
news:11******** **************@ c77g2000hse.goo glegroups.com.. .
>I want to get an opinion on some .aspx logic. Say for isntance you
have a user data submission form that amongst other things is
gathering STATE and COUNTRY information of which appear in a
dropdownlist.

If one is already using both an .aspx page and is using a SQLserver
database, why not just place these two lists into a table instead of
an array (common in simple HTML pages using CGI) for the STATES and an
awefully-long-often-changing COUNTRY list that is still prevalent in
HTML pages.

Speaking of which, isn't it true that a list of countries in HTML has
to be laboriously edited when sitching to XHTML?

What are the advantages and disadvantages anybody wants to chime in
on. I set up one today using SQL tables and it works fine, especailly
since tomorrow my PM wants another field set up for national capitals!
Forunately all I have to do is add a field and parse/query a flat file
I found on the web in the format of ... Finland,Helsink i

Anyone?

Jun 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4385
by: Tony | last post by:
Hello, Can someone please point me toward a regular expression that goes through a string and contructs a list of sentences and part sentences, where words are gradually dropped from the front of the current sentence? Sound confusing? Well perhaps an example would help? Given... "Different countries have different ideas. Merry Christmas to all."
5
18026
by: Andrew V. Romero | last post by:
At work we have an excel file that contains the list of medications and their corresponding strengths. I would like to save the excel file as a text list and paste this list into a javascript function and have JS put this into an array. Then JS would use this array to create a selection list which displays only the names of the drugs. When the user selections one of the drugs, another selection list will be loaded with the avaiable...
2
7870
by: Patrick Fisher | last post by:
I am using the following module code to display in a List Box all attached tables that start with tblProducts i.e. tblProductsSpain or tblProductsFrance etc I have other code which enables the user to enter a new table name, the code then creates the table in the attached back end database and automatically links it to the front end. My problem is that the list box does not display the new tables until I close the program and restart...
2
1898
by: Wysiwyg | last post by:
I was hoping to get some opinions on the efficiency of various methods of reusing the same dropdown list data. Here is the situation: Multiple panels on maintenance pages with TAB menus across the top showing different panels. A DropDownList with a 50+ value/text entries exists on more than one panel but only one will be displayed at a time. Examples might be US states, countries, category codes, etc.
7
3806
by: David Freeman | last post by:
Hi There! I'm trying to create a User Registration page in ASP.NET and wondering what is the best way to get the list of up-to-date Countries and Cities? Are there any Web Services on the web that I can use to retrieve such information? If not, what are the options? Please, any suggestions and pointers will be very much appreciated! Dave
35
3615
by: Thierry Loiseau | last post by:
Hello all, and Happy end year 2005 ! Well, I would like to obtain a list of all JavaScript var statement, With "for...in" perharps ? That is bellow my recent test here, but the problem is to management theses :-((( I must to declare and use all variable with this scheme :
6
2774
by: Samuel Shulman | last post by:
Hi I wander how can I get the a list with all countries and the 2 characters country alphabetic code etc. Thank you, Samuel Shulman
22
28327
by: Ubi | last post by:
I am looking for a list of countries and nationalities, against the top level domain. es: ..ar ==Argentina ==Argentinian ..al ==Albania ==Albanian etc. etc.
3
2852
by: grzegorz.gazda | last post by:
Hi all Is there any limit of images which can be added to a image list. I have a problem with this control. I added an image list in design mode and I am adding images using code. Then I want to use images in a listview, and each time I am trying to call an image at index 15 or above I have an error stating that there isn't any object at that index. I was debbuging it and there was more there was 22 images, but only 15 I can load. Is...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10009
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.