How to appSettings from web.config file?

 Posted by vishalneeraj-24503 on 5/6/2014 | Category: ASP.NET Interview questions | Views: 436 | Points: 40
Answer:

Suppose i have a key named File_Path defined in Web.Config file,then to access this key value we will write on code behind as:

string file_path = System.Configuration.ConfigurationSettings.AppSettings["File_Path"];


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response