I see that Jason already answered you but let me make a recommendation if i
may. Connectionstrings are very bad candidates in general (I know, business
requirements often override this axiom) for retrieval anywhere but locally.
The reason I say this is b/c if you don't have internet connectivity in this
case, then you'll have issues. I had an instnace where I had the same
requirement you did once and we got into trouble b/c if the internet was
inaccessible, you couldn't run the app. So, what we ended up doing was
holding the connection string in a file and retrieving it from there, but
what we did was go to the WS and if we could hit it and make the webmethod
call, we'd overwrite the file value. Since the connection string seldom
changed, even ifyou couldn't hit the ws, chances are the db connectionsting
was still valid. This may not be valid if your db connection string is
volatile and changes a lot - but if it doesn't, then having something you
can safely default to is probably a good idea.
Bill.