[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. :o
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.
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.
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.
Re: Really Stupid app.config Question
Okay, I used an XML file. Thanks.