appSetting Parameter

  • Thread starter Thread starter Grey
  • Start date Start date
G

Grey

I want to set an entry in the application configuration file to set the DB path ConnectiongString. What is the configuration file of windows application of C#..and how to set it??
Also, how to retrieve the value in C#
 
You can create configuration file like the following.

[ExecutableName].exe.config

If you are using VS .NET, simple create App.Config under the root of the
project. When you compile the project, VS .NET automatically creates the
..config file for you and put it in bin folder.



I want to set an entry in the application configuration file to set the DB
path ConnectiongString. What is the configuration file of windows
application of C#..and how to set it??
Also, how to retrieve the value in C#
 
System.Configuration.ConfigurationSetting.AppSetting["KeyNameHere"] will get
you the value.

I want to set an entry in the application configuration file to set the DB
path ConnectiongString. What is the configuration file of windows
application of C#..and how to set it??
Also, how to retrieve the value in C#
 
Back
Top