J
John
Hi,
I'm building a web service which connects to a database. I have
hardcoded the connection string in the web service source code (an
asmx.cs file).
Is this a mistake? Is there someplace else I should put the database
connection string or just the password?
BTW, is it a bad idea to leave .asmx.cs files on the web server? I
don't think they need to be there for the app to function. I wonder
why Visual Studio doesn't leave them on my local disk?
Thanks,
John
I'm building a web service which connects to a database. I have
hardcoded the connection string in the web service source code (an
asmx.cs file).
Is this a mistake? Is there someplace else I should put the database
connection string or just the password?
BTW, is it a bad idea to leave .asmx.cs files on the web server? I
don't think they need to be there for the app to function. I wonder
why Visual Studio doesn't leave them on my local disk?
Thanks,
John