G
Guest
Like a web app can store its connection string in the web.config file, can a
windows forms or console app or windows service store its connection string
in app.config?
Is it advisable?
I know the web application is best to store its strings in there as the web
server will flatly refuse to serve up that file, but I've heard that it will
server up an aspx file if you ask for $::myfile.aspx$ or something like that.
But for a winapp, is it just easier to have a class called 'consts' and have
static strings in that?
Or is it the 'done thing' to use application configuration settings?
Please advise
Thanks
windows forms or console app or windows service store its connection string
in app.config?
Is it advisable?
I know the web application is best to store its strings in there as the web
server will flatly refuse to serve up that file, but I've heard that it will
server up an aspx file if you ask for $::myfile.aspx$ or something like that.
But for a winapp, is it just easier to have a class called 'consts' and have
static strings in that?
Or is it the 'done thing' to use application configuration settings?
Please advise
Thanks