0

In asp.net, I saw some of web application they are maintaing the connection string in drives of the system, i mean they are storing the connection string in system drives like c:, D: drive. how can i store the connection string in the system drives. please help me.

Steve Wellens
  • 20,506
  • 2
  • 28
  • 69
Surya sasidhar
  • 29,607
  • 57
  • 139
  • 219

1 Answers1

1

Are you talking about the configSource attribute for the connectionStrings element? You can then store config settings in separate config files, relative to your app folder.

http://msdn.microsoft.com/en-us/library/ms254494(v=vs.80).aspx

There's a related Stack Overflow topic here:

.NET Config Files configSource outside the application directory folder

Community
  • 1
  • 1
dash
  • 89,546
  • 4
  • 51
  • 71