|
-
Aug 25th, 2010, 08:53 AM
#1
Thread Starter
PowerPoster
[RESOLVED] Really Stupid app.config Question
I googled this before posting hoping I'd find an answer and not have to embarass myself. I can't find what app.config is for, so I don't know if what I'm thinking about using it for makes sense.
I run a query against a database and get back a list of companies which I put in a dropdownlist for a user to select. Some of these companies shouldn't be in the list anymore. We have determined that the database shouldn't be changed (e.g. adding an active column) so I am going to load the ddl the way I always have then read a file of companies to remove from the ddl. I am doing something similar in a VB6 program and in .NET I was going to read a text file, but I didn't know if this is something I should put in app.config. Would that be a correct use of it? Or should I use some other xml file instead of a text file?
Thanks.
There are 10 kinds of people in this world. Those who understand binary, and those who don't.
-
Aug 25th, 2010, 09:08 AM
#2
Re: Really Stupid app.config Question
app.config is the application configuration file. Lots of different types of configuration information can be stored in it; some standard, some custom. You could store that information in the config file but I would probably suggest not. I think a separate file, whether it be XML, plain text or whatever, would be more appropriate.
-
Aug 25th, 2010, 09:25 AM
#3
Re: Really Stupid app.config Question
Can you not add a new table to the database with the ignore list and use that in a join to only return from your main list where they are not in the ignore list. That way you do not change the existing table. You could even create a view of it.
-
Aug 25th, 2010, 09:28 AM
#4
Thread Starter
PowerPoster
Re: Really Stupid app.config Question
No, it's kind of "difficult" to get db stuff changed here, which is why we aren't adding a column to the table. It is easier to create a new file and put it in with the executable than to involve dba's. But thanks for the suggestion.
There are 10 kinds of people in this world. Those who understand binary, and those who don't.
-
Aug 26th, 2010, 05:00 PM
#5
Thread Starter
PowerPoster
Re: Really Stupid app.config Question
Okay, I used an XML file. Thanks.
There are 10 kinds of people in this world. Those who understand binary, and those who don't.
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
|
Click Here to Expand Forum to Full Width
|